3
9.74 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
766445
768088
577751
584807
791490
789037
828185
595398
684802
730830
716781
619350
732733
771143
809758
534209
827359
751707
817196
202901
783765
736269
781658
783090
766965
508504
578948
805054
741298
593913
761050
728667
728648
686248
389738
684572
612854
704644
652232
614820
29295
610485
776784
460598
756219
588595
758102
708806
708800
680475
493826
39030
451580
573789
566865
483214
470860
505172
420060
566554
446754
514383
421432
636554
444586
536939
619728
]
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 (766445 , 768088 , 577751 , 584807 , 791490 , 789037 , 828185 , 595398 , 684802 , 730830 , 716781 , 619350 , 732733 , 771143 , 809758 , 534209 , 827359 , 751707 , 817196 , 202901 , 783765 , 736269 , 781658 , 783090 , 766965 , 508504 , 578948 , 805054 , 741298 , 593913 , 761050 , 728667 , 728648 , 686248 , 389738 , 684572 , 612854 , 704644 , 652232 , 614820 , 29295 , 610485 , 776784 , 460598 , 756219 , 588595 , 758102 , 708806 , 708800 , 680475 , 493826 , 39030 , 451580 , 573789 , 566865 , 483214 , 470860 , 505172 , 420060 , 566554 , 446754 , 514383 , 421432 , 636554 , 444586 , 536939 , 619728 );
Copy
4
2.73 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
29295
39030
202901
389738
420060
421432
444586
446754
451580
460598
470860
483214
493826
505172
508504
514383
534209
536939
566554
566865
573789
577751
578948
584807
588595
593913
595398
610485
612854
614820
619350
619728
636554
652232
680475
684572
684802
686248
704644
708800
708806
716781
728667
730830
732733
736269
741298
751707
756219
758102
761050
766445
766965
768088
771143
776784
781658
783090
783765
789037
791490
805054
809758
817196
827359
]
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 (29295 , 39030 , 202901 , 389738 , 420060 , 421432 , 444586 , 446754 , 451580 , 460598 , 470860 , 483214 , 493826 , 505172 , 508504 , 514383 , 534209 , 536939 , 566554 , 566865 , 573789 , 577751 , 578948 , 584807 , 588595 , 593913 , 595398 , 610485 , 612854 , 614820 , 619350 , 619728 , 636554 , 652232 , 680475 , 684572 , 684802 , 686248 , 704644 , 708800 , 708806 , 716781 , 728667 , 730830 , 732733 , 736269 , 741298 , 751707 , 756219 , 758102 , 761050 , 766445 , 766965 , 768088 , 771143 , 776784 , 781658 , 783090 , 783765 , 789037 , 791490 , 805054 , 809758 , 817196 , 827359 );
Copy
5
107.63 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
29295
39030
202901
389738
420060
421432
444586
446754
451580
460598
470860
483214
493826
505172
508504
514383
534209
536939
566554
566865
573789
577751
578948
584807
588595
593913
595398
610485
612854
614820
619350
619728
636554
652232
680475
684572
684802
686248
704644
708800
708806
716781
728667
730830
732733
736269
741298
751707
756219
758102
761050
766445
766965
768088
771143
776784
781658
783090
783765
789037
791490
805054
809758
817196
827359
]
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 (29295 , 39030 , 202901 , 389738 , 420060 , 421432 , 444586 , 446754 , 451580 , 460598 , 470860 , 483214 , 493826 , 505172 , 508504 , 514383 , 534209 , 536939 , 566554 , 566865 , 573789 , 577751 , 578948 , 584807 , 588595 , 593913 , 595398 , 610485 , 612854 , 614820 , 619350 , 619728 , 636554 , 652232 , 680475 , 684572 , 684802 , 686248 , 704644 , 708800 , 708806 , 716781 , 728667 , 730830 , 732733 , 736269 , 741298 , 751707 , 756219 , 758102 , 761050 , 766445 , 766965 , 768088 , 771143 , 776784 , 781658 , 783090 , 783765 , 789037 , 791490 , 805054 , 809758 , 817196 , 827359 );
Copy