86.94 ms (64.10%)
1
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
177455
225591
386709
423814
427278
437960
437970
439233
454084
454954
467089
467460
481485
482940
489997
498206
509892
515071
515128
516296
523401
523860
525478
527490
534288
542192
550006
550121
552917
554338
558100
569020
572731
573212
581013
599764
605182
605443
624858
632304
638967
642064
651589
662055
671817
680815
692711
701236
703364
706903
713125
739294
747606
749219
751407
751434
760733
775139
787527
788138
788878
795832
799042
811350
811478
814890
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (177455 , 225591 , 386709 , 423814 , 427278 , 437960 , 437970 , 439233 , 454084 , 454954 , 467089 , 467460 , 481485 , 482940 , 489997 , 498206 , 509892 , 515071 , 515128 , 516296 , 523401 , 523860 , 525478 , 527490 , 534288 , 542192 , 550006 , 550121 , 552917 , 554338 , 558100 , 569020 , 572731 , 573212 , 581013 , 599764 , 605182 , 605443 , 624858 , 632304 , 638967 , 642064 , 651589 , 662055 , 671817 , 680815 , 692711 , 701236 , 703364 , 706903 , 713125 , 739294 , 747606 , 749219 , 751407 , 751434 , 760733 , 775139 , 787527 , 788138 , 788878 , 795832 , 799042 , 811350 , 811478 , 814890 );
Copy
11.47 ms (8.46%)
1
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
713125
523401
177455
814890
558100
439233
527490
811478
515128
386709
605182
427278
534288
550006
599764
467089
680815
671817
225591
569020
498206
423814
692711
749219
509892
638967
703364
550121
662055
760733
482940
624858
775139
788878
751434
701236
706903
751407
481485
572731
525478
747606
573212
651589
554338
787527
523860
542192
489997
788138
739294
642064
552917
605443
811350
437970
515071
795832
799042
454954
454084
467460
632304
437960
516296
581013
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (713125 , 523401 , 177455 , 814890 , 558100 , 439233 , 527490 , 811478 , 515128 , 386709 , 605182 , 427278 , 534288 , 550006 , 599764 , 467089 , 680815 , 671817 , 225591 , 569020 , 498206 , 423814 , 692711 , 749219 , 509892 , 638967 , 703364 , 550121 , 662055 , 760733 , 482940 , 624858 , 775139 , 788878 , 751434 , 701236 , 706903 , 751407 , 481485 , 572731 , 525478 , 747606 , 573212 , 651589 , 554338 , 787527 , 523860 , 542192 , 489997 , 788138 , 739294 , 642064 , 552917 , 605443 , 811350 , 437970 , 515071 , 795832 , 799042 , 454954 , 454084 , 467460 , 632304 , 437960 , 516296 , 581013 );
Copy
2.78 ms (2.05%)
1
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
177455
225591
386709
423814
427278
437960
437970
439233
454084
454954
467089
467460
481485
482940
489997
498206
509892
515071
515128
516296
523401
523860
525478
527490
534288
542192
550006
550121
552917
554338
558100
569020
572731
573212
581013
599764
605182
605443
624858
632304
638967
642064
651589
662055
671817
680815
692711
701236
703364
706903
713125
739294
747606
749219
751407
751434
760733
775139
787527
788138
788878
795832
799042
811350
811478
814890
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (177455 , 225591 , 386709 , 423814 , 427278 , 437960 , 437970 , 439233 , 454084 , 454954 , 467089 , 467460 , 481485 , 482940 , 489997 , 498206 , 509892 , 515071 , 515128 , 516296 , 523401 , 523860 , 525478 , 527490 , 534288 , 542192 , 550006 , 550121 , 552917 , 554338 , 558100 , 569020 , 572731 , 573212 , 581013 , 599764 , 605182 , 605443 , 624858 , 632304 , 638967 , 642064 , 651589 , 662055 , 671817 , 680815 , 692711 , 701236 , 703364 , 706903 , 713125 , 739294 , 747606 , 749219 , 751407 , 751434 , 760733 , 775139 , 787527 , 788138 , 788878 , 795832 , 799042 , 811350 , 811478 , 814890 );
Copy