3
9.11 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
653849
527352
699265
583980
522356
680693
561218
617447
737284
403160
391526
680545
592680
749662
701226
561244
784203
577460
657737
510380
807488
480855
96484
587745
427472
543171
650883
598857
437333
556209
785591
519775
520319
514677
526492
425009
561565
620098
707703
391772
459514
564823
689887
382448
298320
495856
129902
556983
810183
389014
421243
466760
590591
627957
443677
495190
522092
551239
561467
426716
548224
648761
582680
567089
475078
523306
494276
445706
618359
652539
]
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 (653849 , 527352 , 699265 , 583980 , 522356 , 680693 , 561218 , 617447 , 737284 , 403160 , 391526 , 680545 , 592680 , 749662 , 701226 , 561244 , 784203 , 577460 , 657737 , 510380 , 807488 , 480855 , 96484 , 587745 , 427472 , 543171 , 650883 , 598857 , 437333 , 556209 , 785591 , 519775 , 520319 , 514677 , 526492 , 425009 , 561565 , 620098 , 707703 , 391772 , 459514 , 564823 , 689887 , 382448 , 298320 , 495856 , 129902 , 556983 , 810183 , 389014 , 421243 , 466760 , 590591 , 627957 , 443677 , 495190 , 522092 , 551239 , 561467 , 426716 , 548224 , 648761 , 582680 , 567089 , 475078 , 523306 , 494276 , 445706 , 618359 , 652539 );
Copy
4
2.22 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
96484
129902
298320
382448
389014
391526
391772
403160
421243
425009
426716
427472
437333
443677
445706
459514
466760
475078
480855
494276
495190
495856
510380
514677
519775
520319
522092
522356
523306
526492
527352
543171
548224
551239
556209
556983
561218
561244
561467
561565
564823
567089
577460
582680
583980
587745
590591
592680
598857
618359
620098
627957
648761
650883
652539
653849
657737
680545
680693
689887
699265
701226
707703
737284
749662
784203
785591
807488
810183
]
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 (96484 , 129902 , 298320 , 382448 , 389014 , 391526 , 391772 , 403160 , 421243 , 425009 , 426716 , 427472 , 437333 , 443677 , 445706 , 459514 , 466760 , 475078 , 480855 , 494276 , 495190 , 495856 , 510380 , 514677 , 519775 , 520319 , 522092 , 522356 , 523306 , 526492 , 527352 , 543171 , 548224 , 551239 , 556209 , 556983 , 561218 , 561244 , 561467 , 561565 , 564823 , 567089 , 577460 , 582680 , 583980 , 587745 , 590591 , 592680 , 598857 , 618359 , 620098 , 627957 , 648761 , 650883 , 652539 , 653849 , 657737 , 680545 , 680693 , 689887 , 699265 , 701226 , 707703 , 737284 , 749662 , 784203 , 785591 , 807488 , 810183 );
Copy
5
110.19 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
96484
129902
298320
382448
389014
391526
391772
403160
421243
425009
426716
427472
437333
443677
445706
459514
466760
475078
480855
494276
495190
495856
510380
514677
519775
520319
522092
522356
523306
526492
527352
543171
548224
551239
556209
556983
561218
561244
561467
561565
564823
567089
577460
582680
583980
587745
590591
592680
598857
618359
620098
627957
648761
650883
652539
653849
657737
680545
680693
689887
699265
701226
707703
737284
749662
784203
785591
807488
810183
]
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 (96484 , 129902 , 298320 , 382448 , 389014 , 391526 , 391772 , 403160 , 421243 , 425009 , 426716 , 427472 , 437333 , 443677 , 445706 , 459514 , 466760 , 475078 , 480855 , 494276 , 495190 , 495856 , 510380 , 514677 , 519775 , 520319 , 522092 , 522356 , 523306 , 526492 , 527352 , 543171 , 548224 , 551239 , 556209 , 556983 , 561218 , 561244 , 561467 , 561565 , 564823 , 567089 , 577460 , 582680 , 583980 , 587745 , 590591 , 592680 , 598857 , 618359 , 620098 , 627957 , 648761 , 650883 , 652539 , 653849 , 657737 , 680545 , 680693 , 689887 , 699265 , 701226 , 707703 , 737284 , 749662 , 784203 , 785591 , 807488 , 810183 );
Copy