3
10.64 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
399036
567741
458080
423948
412134
525584
538199
789915
423855
538417
493042
580137
684704
657780
492088
456730
511596
697457
434338
523869
488157
522645
422192
519577
460489
496236
525328
461919
487820
504313
742636
761039
510884
520549
555984
391277
527983
470860
483024
490250
512480
496244
439749
502885
439731
526494
440629
621160
577450
511472
512232
485524
534820
618146
390382
421882
589450
507640
555989
527227
422158
514711
654109
620757
454107
595875
447679
]
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 (399036 , 567741 , 458080 , 423948 , 412134 , 525584 , 538199 , 789915 , 423855 , 538417 , 493042 , 580137 , 684704 , 657780 , 492088 , 456730 , 511596 , 697457 , 434338 , 523869 , 488157 , 522645 , 422192 , 519577 , 460489 , 496236 , 525328 , 461919 , 487820 , 504313 , 742636 , 761039 , 510884 , 520549 , 555984 , 391277 , 527983 , 470860 , 483024 , 490250 , 512480 , 496244 , 439749 , 502885 , 439731 , 526494 , 440629 , 621160 , 577450 , 511472 , 512232 , 485524 , 534820 , 618146 , 390382 , 421882 , 589450 , 507640 , 555989 , 527227 , 422158 , 514711 , 654109 , 620757 , 454107 , 595875 , 447679 );
Copy
4
2.87 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
390382
391277
399036
412134
421882
422158
422192
423855
423948
434338
439731
439749
440629
447679
454107
456730
458080
460489
461919
470860
483024
485524
487820
488157
490250
492088
493042
496236
496244
502885
504313
507640
510884
511472
511596
512232
512480
514711
519577
520549
522645
523869
525328
525584
526494
527227
527983
534820
538199
538417
555984
555989
567741
577450
580137
589450
595875
618146
620757
621160
654109
657780
684704
697457
742636
761039
789915
]
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 (390382 , 391277 , 399036 , 412134 , 421882 , 422158 , 422192 , 423855 , 423948 , 434338 , 439731 , 439749 , 440629 , 447679 , 454107 , 456730 , 458080 , 460489 , 461919 , 470860 , 483024 , 485524 , 487820 , 488157 , 490250 , 492088 , 493042 , 496236 , 496244 , 502885 , 504313 , 507640 , 510884 , 511472 , 511596 , 512232 , 512480 , 514711 , 519577 , 520549 , 522645 , 523869 , 525328 , 525584 , 526494 , 527227 , 527983 , 534820 , 538199 , 538417 , 555984 , 555989 , 567741 , 577450 , 580137 , 589450 , 595875 , 618146 , 620757 , 621160 , 654109 , 657780 , 684704 , 697457 , 742636 , 761039 , 789915 );
Copy
5
77.32 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
390382
391277
399036
412134
421882
422158
422192
423855
423948
434338
439731
439749
440629
447679
454107
456730
458080
460489
461919
470860
483024
485524
487820
488157
490250
492088
493042
496236
496244
502885
504313
507640
510884
511472
511596
512232
512480
514711
519577
520549
522645
523869
525328
525584
526494
527227
527983
534820
538199
538417
555984
555989
567741
577450
580137
589450
595875
618146
620757
621160
654109
657780
684704
697457
742636
761039
789915
]
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 (390382 , 391277 , 399036 , 412134 , 421882 , 422158 , 422192 , 423855 , 423948 , 434338 , 439731 , 439749 , 440629 , 447679 , 454107 , 456730 , 458080 , 460489 , 461919 , 470860 , 483024 , 485524 , 487820 , 488157 , 490250 , 492088 , 493042 , 496236 , 496244 , 502885 , 504313 , 507640 , 510884 , 511472 , 511596 , 512232 , 512480 , 514711 , 519577 , 520549 , 522645 , 523869 , 525328 , 525584 , 526494 , 527227 , 527983 , 534820 , 538199 , 538417 , 555984 , 555989 , 567741 , 577450 , 580137 , 589450 , 595875 , 618146 , 620757 , 621160 , 654109 , 657780 , 684704 , 697457 , 742636 , 761039 , 789915 );
Copy