3
11.43 ms
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
497280
485790
489471
648257
720882
678942
665918
451559
512830
533760
637413
496086
543848
527915
514836
516336
598105
516771
514071
443222
424523
501474
647995
491463
614867
573261
618673
665328
427174
476119
559486
590633
447452
523509
533531
533738
469566
491784
552267
516615
533747
603132
453368
443971
521426
538803
526203
647975
462450
513710
454107
497921
447810
526199
543874
540339
537199
619204
608441
555789
495400
534645
511920
669574
524712
]
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 (497280 , 485790 , 489471 , 648257 , 720882 , 678942 , 665918 , 451559 , 512830 , 533760 , 637413 , 496086 , 543848 , 527915 , 514836 , 516336 , 598105 , 516771 , 514071 , 443222 , 424523 , 501474 , 647995 , 491463 , 614867 , 573261 , 618673 , 665328 , 427174 , 476119 , 559486 , 590633 , 447452 , 523509 , 533531 , 533738 , 469566 , 491784 , 552267 , 516615 , 533747 , 603132 , 453368 , 443971 , 521426 , 538803 , 526203 , 647975 , 462450 , 513710 , 454107 , 497921 , 447810 , 526199 , 543874 , 540339 , 537199 , 619204 , 608441 , 555789 , 495400 , 534645 , 511920 , 669574 , 524712 );
Copy
4
2.30 ms
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
424523
427174
443222
443971
447452
447810
451559
453368
454107
462450
469566
476119
485790
489471
491463
491784
495400
496086
497280
497921
501474
511920
512830
513710
514071
514836
516336
516615
516771
521426
523509
524712
526199
526203
527915
533531
533738
533747
533760
534645
537199
538803
540339
543848
543874
552267
555789
559486
573261
590633
598105
603132
608441
614867
618673
619204
637413
647975
647995
648257
665328
665918
669574
678942
720882
]
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 (424523 , 427174 , 443222 , 443971 , 447452 , 447810 , 451559 , 453368 , 454107 , 462450 , 469566 , 476119 , 485790 , 489471 , 491463 , 491784 , 495400 , 496086 , 497280 , 497921 , 501474 , 511920 , 512830 , 513710 , 514071 , 514836 , 516336 , 516615 , 516771 , 521426 , 523509 , 524712 , 526199 , 526203 , 527915 , 533531 , 533738 , 533747 , 533760 , 534645 , 537199 , 538803 , 540339 , 543848 , 543874 , 552267 , 555789 , 559486 , 573261 , 590633 , 598105 , 603132 , 608441 , 614867 , 618673 , 619204 , 637413 , 647975 , 647995 , 648257 , 665328 , 665918 , 669574 , 678942 , 720882 );
Copy
5
131.92 ms
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
424523
427174
443222
443971
447452
447810
451559
453368
454107
462450
469566
476119
485790
489471
491463
491784
495400
496086
497280
497921
501474
511920
512830
513710
514071
514836
516336
516615
516771
521426
523509
524712
526199
526203
527915
533531
533738
533747
533760
534645
537199
538803
540339
543848
543874
552267
555789
559486
573261
590633
598105
603132
608441
614867
618673
619204
637413
647975
647995
648257
665328
665918
669574
678942
720882
]
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 (424523 , 427174 , 443222 , 443971 , 447452 , 447810 , 451559 , 453368 , 454107 , 462450 , 469566 , 476119 , 485790 , 489471 , 491463 , 491784 , 495400 , 496086 , 497280 , 497921 , 501474 , 511920 , 512830 , 513710 , 514071 , 514836 , 516336 , 516615 , 516771 , 521426 , 523509 , 524712 , 526199 , 526203 , 527915 , 533531 , 533738 , 533747 , 533760 , 534645 , 537199 , 538803 , 540339 , 543848 , 543874 , 552267 , 555789 , 559486 , 573261 , 590633 , 598105 , 603132 , 608441 , 614867 , 618673 , 619204 , 637413 , 647975 , 647995 , 648257 , 665328 , 665918 , 669574 , 678942 , 720882 );
Copy