3
10.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
469411
760571
757512
467923
451014
468135
492718
468139
624841
693848
788589
756480
182557
500974
519501
693816
569922
746204
424795
418623
641837
718063
416022
391604
527207
600471
398900
412930
482237
582567
810118
405988
456593
750592
516884
495421
620614
472625
450255
518458
766364
748616
526069
464971
824483
481495
424787
766837
544404
468027
624742
698288
808064
815268
587283
813207
639121
787867
577692
605518
588071
598975
619761
666850
523205
556485
582631
424385
]
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 (469411 , 760571 , 757512 , 467923 , 451014 , 468135 , 492718 , 468139 , 624841 , 693848 , 788589 , 756480 , 182557 , 500974 , 519501 , 693816 , 569922 , 746204 , 424795 , 418623 , 641837 , 718063 , 416022 , 391604 , 527207 , 600471 , 398900 , 412930 , 482237 , 582567 , 810118 , 405988 , 456593 , 750592 , 516884 , 495421 , 620614 , 472625 , 450255 , 518458 , 766364 , 748616 , 526069 , 464971 , 824483 , 481495 , 424787 , 766837 , 544404 , 468027 , 624742 , 698288 , 808064 , 815268 , 587283 , 813207 , 639121 , 787867 , 577692 , 605518 , 588071 , 598975 , 619761 , 666850 , 523205 , 556485 , 582631 , 424385 );
Copy
4
2.57 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
182557
391604
398900
405988
412930
416022
418623
424385
424787
424795
450255
451014
456593
464971
467923
468027
468135
468139
469411
472625
481495
482237
492718
495421
500974
516884
518458
519501
523205
526069
527207
544404
556485
569922
577692
582567
582631
587283
588071
598975
600471
605518
619761
620614
624742
624841
639121
641837
666850
693816
693848
698288
718063
746204
748616
750592
756480
757512
760571
766364
766837
787867
788589
808064
810118
813207
815268
824483
]
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 (182557 , 391604 , 398900 , 405988 , 412930 , 416022 , 418623 , 424385 , 424787 , 424795 , 450255 , 451014 , 456593 , 464971 , 467923 , 468027 , 468135 , 468139 , 469411 , 472625 , 481495 , 482237 , 492718 , 495421 , 500974 , 516884 , 518458 , 519501 , 523205 , 526069 , 527207 , 544404 , 556485 , 569922 , 577692 , 582567 , 582631 , 587283 , 588071 , 598975 , 600471 , 605518 , 619761 , 620614 , 624742 , 624841 , 639121 , 641837 , 666850 , 693816 , 693848 , 698288 , 718063 , 746204 , 748616 , 750592 , 756480 , 757512 , 760571 , 766364 , 766837 , 787867 , 788589 , 808064 , 810118 , 813207 , 815268 , 824483 );
Copy
5
114.51 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
182557
391604
398900
405988
412930
416022
418623
424385
424787
424795
450255
451014
456593
464971
467923
468027
468135
468139
469411
472625
481495
482237
492718
495421
500974
516884
518458
519501
523205
526069
527207
544404
556485
569922
577692
582567
582631
587283
588071
598975
600471
605518
619761
620614
624742
624841
639121
641837
666850
693816
693848
698288
718063
746204
748616
750592
756480
757512
760571
766364
766837
787867
788589
808064
810118
813207
815268
824483
]
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 (182557 , 391604 , 398900 , 405988 , 412930 , 416022 , 418623 , 424385 , 424787 , 424795 , 450255 , 451014 , 456593 , 464971 , 467923 , 468027 , 468135 , 468139 , 469411 , 472625 , 481495 , 482237 , 492718 , 495421 , 500974 , 516884 , 518458 , 519501 , 523205 , 526069 , 527207 , 544404 , 556485 , 569922 , 577692 , 582567 , 582631 , 587283 , 588071 , 598975 , 600471 , 605518 , 619761 , 620614 , 624742 , 624841 , 639121 , 641837 , 666850 , 693816 , 693848 , 698288 , 718063 , 746204 , 748616 , 750592 , 756480 , 757512 , 760571 , 766364 , 766837 , 787867 , 788589 , 808064 , 810118 , 813207 , 815268 , 824483 );
Copy