3
23.96 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
563729
487780
513835
556687
769082
792321
414238
796929
576617
633714
768845
533147
717758
431653
587657
808263
768913
744823
696763
588939
606034
510936
641252
742336
508210
485415
652817
4375
562578
510918
742453
510945
441233
758809
630417
784039
445973
572931
435521
550187
469769
465974
742290
517805
554571
637544
628582
547809
562435
756807
728961
604815
758778
521761
490767
513209
547790
555019
513443
584366
555008
548013
513697
602747
452293
605711
588294
]
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 (563729 , 487780 , 513835 , 556687 , 769082 , 792321 , 414238 , 796929 , 576617 , 633714 , 768845 , 533147 , 717758 , 431653 , 587657 , 808263 , 768913 , 744823 , 696763 , 588939 , 606034 , 510936 , 641252 , 742336 , 508210 , 485415 , 652817 , 4375 , 562578 , 510918 , 742453 , 510945 , 441233 , 758809 , 630417 , 784039 , 445973 , 572931 , 435521 , 550187 , 469769 , 465974 , 742290 , 517805 , 554571 , 637544 , 628582 , 547809 , 562435 , 756807 , 728961 , 604815 , 758778 , 521761 , 490767 , 513209 , 547790 , 555019 , 513443 , 584366 , 555008 , 548013 , 513697 , 602747 , 452293 , 605711 , 588294 );
Copy
4
3.81 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
4375
414238
431653
435521
441233
445973
452293
465974
469769
485415
487780
490767
508210
510918
510936
510945
513209
513443
513697
513835
517805
521761
533147
547790
547809
548013
550187
554571
555008
555019
556687
562435
562578
563729
572931
576617
584366
587657
588294
588939
602747
604815
605711
606034
628582
630417
633714
637544
641252
652817
696763
717758
728961
742290
742336
742453
744823
756807
758778
758809
768845
768913
769082
784039
792321
796929
808263
]
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 (4375 , 414238 , 431653 , 435521 , 441233 , 445973 , 452293 , 465974 , 469769 , 485415 , 487780 , 490767 , 508210 , 510918 , 510936 , 510945 , 513209 , 513443 , 513697 , 513835 , 517805 , 521761 , 533147 , 547790 , 547809 , 548013 , 550187 , 554571 , 555008 , 555019 , 556687 , 562435 , 562578 , 563729 , 572931 , 576617 , 584366 , 587657 , 588294 , 588939 , 602747 , 604815 , 605711 , 606034 , 628582 , 630417 , 633714 , 637544 , 641252 , 652817 , 696763 , 717758 , 728961 , 742290 , 742336 , 742453 , 744823 , 756807 , 758778 , 758809 , 768845 , 768913 , 769082 , 784039 , 792321 , 796929 , 808263 );
Copy
5
108.04 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
4375
414238
431653
435521
441233
445973
452293
465974
469769
485415
487780
490767
508210
510918
510936
510945
513209
513443
513697
513835
517805
521761
533147
547790
547809
548013
550187
554571
555008
555019
556687
562435
562578
563729
572931
576617
584366
587657
588294
588939
602747
604815
605711
606034
628582
630417
633714
637544
641252
652817
696763
717758
728961
742290
742336
742453
744823
756807
758778
758809
768845
768913
769082
784039
792321
796929
808263
]
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 (4375 , 414238 , 431653 , 435521 , 441233 , 445973 , 452293 , 465974 , 469769 , 485415 , 487780 , 490767 , 508210 , 510918 , 510936 , 510945 , 513209 , 513443 , 513697 , 513835 , 517805 , 521761 , 533147 , 547790 , 547809 , 548013 , 550187 , 554571 , 555008 , 555019 , 556687 , 562435 , 562578 , 563729 , 572931 , 576617 , 584366 , 587657 , 588294 , 588939 , 602747 , 604815 , 605711 , 606034 , 628582 , 630417 , 633714 , 637544 , 641252 , 652817 , 696763 , 717758 , 728961 , 742290 , 742336 , 742453 , 744823 , 756807 , 758778 , 758809 , 768845 , 768913 , 769082 , 784039 , 792321 , 796929 , 808263 );
Copy