3
9.03 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
805717
549830
820746
780795
820113
743738
786127
793930
773814
723107
818602
716915
798763
716921
716935
592933
775271
730904
743429
726390
769550
772444
711341
696567
755695
743463
736517
746497
697943
714062
716936
662140
689002
775270
788158
723955
724045
727891
724456
743431
744563
769536
723945
758174
699604
567430
785180
697909
753205
756803
769490
763845
697939
592856
756714
775274
549661
565626
546937
563423
607030
724476
557924
420767
676591
532114
566928
748236
456057
582269
561577
519023
]
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 (805717 , 549830 , 820746 , 780795 , 820113 , 743738 , 786127 , 793930 , 773814 , 723107 , 818602 , 716915 , 798763 , 716921 , 716935 , 592933 , 775271 , 730904 , 743429 , 726390 , 769550 , 772444 , 711341 , 696567 , 755695 , 743463 , 736517 , 746497 , 697943 , 714062 , 716936 , 662140 , 689002 , 775270 , 788158 , 723955 , 724045 , 727891 , 724456 , 743431 , 744563 , 769536 , 723945 , 758174 , 699604 , 567430 , 785180 , 697909 , 753205 , 756803 , 769490 , 763845 , 697939 , 592856 , 756714 , 775274 , 549661 , 565626 , 546937 , 563423 , 607030 , 724476 , 557924 , 420767 , 676591 , 532114 , 566928 , 748236 , 456057 , 582269 , 561577 , 519023 );
Copy
4
2.28 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
420767
456057
519023
532114
546937
549661
549830
557924
561577
563423
565626
566928
567430
582269
592856
592933
607030
662140
676591
689002
696567
697909
699604
711341
714062
716915
716921
716935
723945
723955
724045
724456
724476
726390
727891
730904
743429
743431
743463
743738
744563
746497
748236
753205
755695
756714
756803
758174
763845
769490
769536
769550
772444
773814
775270
775271
775274
780795
785180
786127
788158
793930
798763
805717
818602
820113
820746
]
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 (420767 , 456057 , 519023 , 532114 , 546937 , 549661 , 549830 , 557924 , 561577 , 563423 , 565626 , 566928 , 567430 , 582269 , 592856 , 592933 , 607030 , 662140 , 676591 , 689002 , 696567 , 697909 , 699604 , 711341 , 714062 , 716915 , 716921 , 716935 , 723945 , 723955 , 724045 , 724456 , 724476 , 726390 , 727891 , 730904 , 743429 , 743431 , 743463 , 743738 , 744563 , 746497 , 748236 , 753205 , 755695 , 756714 , 756803 , 758174 , 763845 , 769490 , 769536 , 769550 , 772444 , 773814 , 775270 , 775271 , 775274 , 780795 , 785180 , 786127 , 788158 , 793930 , 798763 , 805717 , 818602 , 820113 , 820746 );
Copy
5
111.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
420767
456057
519023
532114
546937
549661
549830
557924
561577
563423
565626
566928
567430
582269
592856
592933
607030
662140
676591
689002
696567
697909
699604
711341
714062
716915
716921
716935
723945
723955
724045
724456
724476
726390
727891
730904
743429
743431
743463
743738
744563
746497
748236
753205
755695
756714
756803
758174
763845
769490
769536
769550
772444
773814
775270
775271
775274
780795
785180
786127
788158
793930
798763
805717
818602
820113
820746
]
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 (420767 , 456057 , 519023 , 532114 , 546937 , 549661 , 549830 , 557924 , 561577 , 563423 , 565626 , 566928 , 567430 , 582269 , 592856 , 592933 , 607030 , 662140 , 676591 , 689002 , 696567 , 697909 , 699604 , 711341 , 714062 , 716915 , 716921 , 716935 , 723945 , 723955 , 724045 , 724456 , 724476 , 726390 , 727891 , 730904 , 743429 , 743431 , 743463 , 743738 , 744563 , 746497 , 748236 , 753205 , 755695 , 756714 , 756803 , 758174 , 763845 , 769490 , 769536 , 769550 , 772444 , 773814 , 775270 , 775271 , 775274 , 780795 , 785180 , 786127 , 788158 , 793930 , 798763 , 805717 , 818602 , 820113 , 820746 );
Copy