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
622122
721807
583320
767217
805112
808080
459251
338997
536623
653182
759178
606849
790732
743940
695840
783583
753136
758830
766998
764856
550968
710204
747002
780129
536573
580802
604808
799416
765784
607533
647558
604937
639436
775204
813625
504938
686400
809510
771594
813621
601169
591353
808787
799081
737541
773450
759576
459883
554231
572235
693596
783460
491170
814841
529940
677744
604066
594422
809468
555509
606744
807407
509666
]
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 (622122 , 721807 , 583320 , 767217 , 805112 , 808080 , 459251 , 338997 , 536623 , 653182 , 759178 , 606849 , 790732 , 743940 , 695840 , 783583 , 753136 , 758830 , 766998 , 764856 , 550968 , 710204 , 747002 , 780129 , 536573 , 580802 , 604808 , 799416 , 765784 , 607533 , 647558 , 604937 , 639436 , 775204 , 813625 , 504938 , 686400 , 809510 , 771594 , 813621 , 601169 , 591353 , 808787 , 799081 , 737541 , 773450 , 759576 , 459883 , 554231 , 572235 , 693596 , 783460 , 491170 , 814841 , 529940 , 677744 , 604066 , 594422 , 809468 , 555509 , 606744 , 807407 , 509666 );
Copy
4
2.91 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
338997
459251
459883
491170
504938
509666
529940
536573
536623
550968
554231
555509
572235
580802
583320
591353
594422
601169
604066
604808
604937
606744
606849
607533
622122
639436
647558
653182
677744
686400
693596
695840
710204
721807
737541
743940
747002
753136
758830
759178
759576
764856
765784
767217
771594
773450
775204
780129
783460
783583
790732
799081
799416
805112
807407
808080
808787
809468
809510
813621
813625
814841
]
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 (338997 , 459251 , 459883 , 491170 , 504938 , 509666 , 529940 , 536573 , 536623 , 550968 , 554231 , 555509 , 572235 , 580802 , 583320 , 591353 , 594422 , 601169 , 604066 , 604808 , 604937 , 606744 , 606849 , 607533 , 622122 , 639436 , 647558 , 653182 , 677744 , 686400 , 693596 , 695840 , 710204 , 721807 , 737541 , 743940 , 747002 , 753136 , 758830 , 759178 , 759576 , 764856 , 765784 , 767217 , 771594 , 773450 , 775204 , 780129 , 783460 , 783583 , 790732 , 799081 , 799416 , 805112 , 807407 , 808080 , 808787 , 809468 , 809510 , 813621 , 813625 , 814841 );
Copy
5
89.94 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
338997
459251
459883
491170
504938
509666
529940
536573
536623
550968
554231
555509
572235
580802
583320
591353
594422
601169
604066
604808
604937
606744
606849
607533
622122
639436
647558
653182
677744
686400
693596
695840
710204
721807
737541
743940
747002
753136
758830
759178
759576
764856
765784
767217
771594
773450
775204
780129
783460
783583
790732
799081
799416
805112
807407
808080
808787
809468
809510
813621
813625
814841
]
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 (338997 , 459251 , 459883 , 491170 , 504938 , 509666 , 529940 , 536573 , 536623 , 550968 , 554231 , 555509 , 572235 , 580802 , 583320 , 591353 , 594422 , 601169 , 604066 , 604808 , 604937 , 606744 , 606849 , 607533 , 622122 , 639436 , 647558 , 653182 , 677744 , 686400 , 693596 , 695840 , 710204 , 721807 , 737541 , 743940 , 747002 , 753136 , 758830 , 759178 , 759576 , 764856 , 765784 , 767217 , 771594 , 773450 , 775204 , 780129 , 783460 , 783583 , 790732 , 799081 , 799416 , 805112 , 807407 , 808080 , 808787 , 809468 , 809510 , 813621 , 813625 , 814841 );
Copy