94.08 ms (50.88%)
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
79082
184359
210072
391941
405961
417058
418534
421050
421131
423329
423940
437855
443387
443823
447038
453494
462209
470273
474019
478096
490201
500363
506328
512578
513215
516329
520753
520759
524018
526125
531393
535724
544181
544508
545377
547997
561132
565351
567581
571136
582371
583500
584004
589196
590560
591804
603132
603269
606816
612422
613375
617170
619204
640136
656904
665918
668525
671863
704953
716030
721982
730798
738440
742015
762268
796430
]
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 (79082 , 184359 , 210072 , 391941 , 405961 , 417058 , 418534 , 421050 , 421131 , 423329 , 423940 , 437855 , 443387 , 443823 , 447038 , 453494 , 462209 , 470273 , 474019 , 478096 , 490201 , 500363 , 506328 , 512578 , 513215 , 516329 , 520753 , 520759 , 524018 , 526125 , 531393 , 535724 , 544181 , 544508 , 545377 , 547997 , 561132 , 565351 , 567581 , 571136 , 582371 , 583500 , 584004 , 589196 , 590560 , 591804 , 603132 , 603269 , 606816 , 612422 , 613375 , 617170 , 619204 , 640136 , 656904 , 665918 , 668525 , 671863 , 704953 , 716030 , 721982 , 730798 , 738440 , 742015 , 762268 , 796430 );
Copy
11.71 ms (6.33%)
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
617170
589196
544181
796430
584004
443387
526125
591804
184359
721982
79082
762268
462209
571136
742015
437855
453494
516329
603132
210072
470273
535724
613375
656904
565351
520753
447038
421131
500363
606816
547997
704953
544508
665918
418534
417058
561132
582371
545377
506328
531393
603269
738440
421050
405961
474019
567581
590560
423940
513215
478096
716030
512578
612422
619204
443823
583500
640136
668525
391941
524018
490201
671863
730798
423329
520759
]
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 (617170 , 589196 , 544181 , 796430 , 584004 , 443387 , 526125 , 591804 , 184359 , 721982 , 79082 , 762268 , 462209 , 571136 , 742015 , 437855 , 453494 , 516329 , 603132 , 210072 , 470273 , 535724 , 613375 , 656904 , 565351 , 520753 , 447038 , 421131 , 500363 , 606816 , 547997 , 704953 , 544508 , 665918 , 418534 , 417058 , 561132 , 582371 , 545377 , 506328 , 531393 , 603269 , 738440 , 421050 , 405961 , 474019 , 567581 , 590560 , 423940 , 513215 , 478096 , 716030 , 512578 , 612422 , 619204 , 443823 , 583500 , 640136 , 668525 , 391941 , 524018 , 490201 , 671863 , 730798 , 423329 , 520759 );
Copy
2.89 ms (1.57%)
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
79082
184359
210072
391941
405961
417058
418534
421050
421131
423329
423940
437855
443387
443823
447038
453494
462209
470273
474019
478096
490201
500363
506328
512578
513215
516329
520753
520759
524018
526125
531393
535724
544181
544508
545377
547997
561132
565351
567581
571136
582371
583500
584004
589196
590560
591804
603132
603269
606816
612422
613375
617170
619204
640136
656904
665918
668525
671863
704953
716030
721982
730798
738440
742015
762268
796430
]
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 (79082 , 184359 , 210072 , 391941 , 405961 , 417058 , 418534 , 421050 , 421131 , 423329 , 423940 , 437855 , 443387 , 443823 , 447038 , 453494 , 462209 , 470273 , 474019 , 478096 , 490201 , 500363 , 506328 , 512578 , 513215 , 516329 , 520753 , 520759 , 524018 , 526125 , 531393 , 535724 , 544181 , 544508 , 545377 , 547997 , 561132 , 565351 , 567581 , 571136 , 582371 , 583500 , 584004 , 589196 , 590560 , 591804 , 603132 , 603269 , 606816 , 612422 , 613375 , 617170 , 619204 , 640136 , 656904 , 665918 , 668525 , 671863 , 704953 , 716030 , 721982 , 730798 , 738440 , 742015 , 762268 , 796430 );
Copy