3
9.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
542865
540777
540765
730190
583525
799926
591920
583910
745050
540789
711682
744695
813592
553858
511688
583935
733564
512466
583954
543420
635422
550299
575693
580642
585282
824599
635516
534784
773721
587757
657807
631158
716148
741673
750161
789061
761423
818847
808305
743567
789064
791633
635481
670251
553253
460627
791322
631538
708057
700828
698109
762476
618591
806072
605673
589203
570717
456042
703492
559165
635432
562028
500503
532504
555680
539739
605688
539745
]
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 (542865 , 540777 , 540765 , 730190 , 583525 , 799926 , 591920 , 583910 , 745050 , 540789 , 711682 , 744695 , 813592 , 553858 , 511688 , 583935 , 733564 , 512466 , 583954 , 543420 , 635422 , 550299 , 575693 , 580642 , 585282 , 824599 , 635516 , 534784 , 773721 , 587757 , 657807 , 631158 , 716148 , 741673 , 750161 , 789061 , 761423 , 818847 , 808305 , 743567 , 789064 , 791633 , 635481 , 670251 , 553253 , 460627 , 791322 , 631538 , 708057 , 700828 , 698109 , 762476 , 618591 , 806072 , 605673 , 589203 , 570717 , 456042 , 703492 , 559165 , 635432 , 562028 , 500503 , 532504 , 555680 , 539739 , 605688 , 539745 );
Copy
4
3.29 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
456042
460627
500503
511688
512466
532504
534784
539739
539745
540765
540777
540789
542865
543420
550299
553253
553858
555680
559165
562028
570717
575693
580642
583525
583910
583935
583954
585282
587757
589203
591920
605673
605688
618591
631538
635422
635432
635481
635516
657807
670251
698109
700828
703492
708057
711682
716148
730190
733564
741673
743567
744695
745050
750161
761423
762476
773721
789061
789064
791322
791633
799926
806072
808305
813592
818847
]
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 (456042 , 460627 , 500503 , 511688 , 512466 , 532504 , 534784 , 539739 , 539745 , 540765 , 540777 , 540789 , 542865 , 543420 , 550299 , 553253 , 553858 , 555680 , 559165 , 562028 , 570717 , 575693 , 580642 , 583525 , 583910 , 583935 , 583954 , 585282 , 587757 , 589203 , 591920 , 605673 , 605688 , 618591 , 631538 , 635422 , 635432 , 635481 , 635516 , 657807 , 670251 , 698109 , 700828 , 703492 , 708057 , 711682 , 716148 , 730190 , 733564 , 741673 , 743567 , 744695 , 745050 , 750161 , 761423 , 762476 , 773721 , 789061 , 789064 , 791322 , 791633 , 799926 , 806072 , 808305 , 813592 , 818847 );
Copy
5
87.70 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
456042
460627
500503
511688
512466
532504
534784
539739
539745
540765
540777
540789
542865
543420
550299
553253
553858
555680
559165
562028
570717
575693
580642
583525
583910
583935
583954
585282
587757
589203
591920
605673
605688
618591
631538
635422
635432
635481
635516
657807
670251
698109
700828
703492
708057
711682
716148
730190
733564
741673
743567
744695
745050
750161
761423
762476
773721
789061
789064
791322
791633
799926
806072
808305
813592
818847
]
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 (456042 , 460627 , 500503 , 511688 , 512466 , 532504 , 534784 , 539739 , 539745 , 540765 , 540777 , 540789 , 542865 , 543420 , 550299 , 553253 , 553858 , 555680 , 559165 , 562028 , 570717 , 575693 , 580642 , 583525 , 583910 , 583935 , 583954 , 585282 , 587757 , 589203 , 591920 , 605673 , 605688 , 618591 , 631538 , 635422 , 635432 , 635481 , 635516 , 657807 , 670251 , 698109 , 700828 , 703492 , 708057 , 711682 , 716148 , 730190 , 733564 , 741673 , 743567 , 744695 , 745050 , 750161 , 761423 , 762476 , 773721 , 789061 , 789064 , 791322 , 791633 , 799926 , 806072 , 808305 , 813592 , 818847 );
Copy