3
10.25 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
742927
182557
500974
519501
546571
693816
569922
746204
739161
424795
418623
641837
416022
391604
439256
527207
600471
573760
398900
412930
482237
582567
582573
810118
405988
456593
750592
729843
516884
495421
620614
472625
450255
518458
766364
748616
464971
591197
481495
424787
766837
544404
468027
624742
698288
768722
808064
815268
587283
813207
639121
752648
787867
418130
577692
605518
505317
588071
560409
598975
619761
666850
523205
478517
556485
582631
513182
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 (742927 , 182557 , 500974 , 519501 , 546571 , 693816 , 569922 , 746204 , 739161 , 424795 , 418623 , 641837 , 416022 , 391604 , 439256 , 527207 , 600471 , 573760 , 398900 , 412930 , 482237 , 582567 , 582573 , 810118 , 405988 , 456593 , 750592 , 729843 , 516884 , 495421 , 620614 , 472625 , 450255 , 518458 , 766364 , 748616 , 464971 , 591197 , 481495 , 424787 , 766837 , 544404 , 468027 , 624742 , 698288 , 768722 , 808064 , 815268 , 587283 , 813207 , 639121 , 752648 , 787867 , 418130 , 577692 , 605518 , 505317 , 588071 , 560409 , 598975 , 619761 , 666850 , 523205 , 478517 , 556485 , 582631 , 513182 , 424385 );
Copy
4
2.77 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
418130
418623
424385
424787
424795
439256
450255
456593
464971
468027
472625
478517
481495
482237
495421
500974
505317
513182
516884
518458
519501
523205
527207
544404
546571
556485
560409
569922
573760
577692
582567
582573
582631
587283
588071
591197
598975
600471
605518
619761
620614
624742
639121
641837
666850
693816
698288
729843
739161
742927
746204
748616
750592
752648
766364
766837
768722
787867
808064
810118
813207
815268
]
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 , 418130 , 418623 , 424385 , 424787 , 424795 , 439256 , 450255 , 456593 , 464971 , 468027 , 472625 , 478517 , 481495 , 482237 , 495421 , 500974 , 505317 , 513182 , 516884 , 518458 , 519501 , 523205 , 527207 , 544404 , 546571 , 556485 , 560409 , 569922 , 573760 , 577692 , 582567 , 582573 , 582631 , 587283 , 588071 , 591197 , 598975 , 600471 , 605518 , 619761 , 620614 , 624742 , 639121 , 641837 , 666850 , 693816 , 698288 , 729843 , 739161 , 742927 , 746204 , 748616 , 750592 , 752648 , 766364 , 766837 , 768722 , 787867 , 808064 , 810118 , 813207 , 815268 );
Copy
5
104.30 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
418130
418623
424385
424787
424795
439256
450255
456593
464971
468027
472625
478517
481495
482237
495421
500974
505317
513182
516884
518458
519501
523205
527207
544404
546571
556485
560409
569922
573760
577692
582567
582573
582631
587283
588071
591197
598975
600471
605518
619761
620614
624742
639121
641837
666850
693816
698288
729843
739161
742927
746204
748616
750592
752648
766364
766837
768722
787867
808064
810118
813207
815268
]
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 , 418130 , 418623 , 424385 , 424787 , 424795 , 439256 , 450255 , 456593 , 464971 , 468027 , 472625 , 478517 , 481495 , 482237 , 495421 , 500974 , 505317 , 513182 , 516884 , 518458 , 519501 , 523205 , 527207 , 544404 , 546571 , 556485 , 560409 , 569922 , 573760 , 577692 , 582567 , 582573 , 582631 , 587283 , 588071 , 591197 , 598975 , 600471 , 605518 , 619761 , 620614 , 624742 , 639121 , 641837 , 666850 , 693816 , 698288 , 729843 , 739161 , 742927 , 746204 , 748616 , 750592 , 752648 , 766364 , 766837 , 768722 , 787867 , 808064 , 810118 , 813207 , 815268 );
Copy