4
10.19 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
520841
533015
649975
681331
668501
590321
644268
600175
640700
788788
475227
527797
411078
531206
524196
536580
523521
531211
512535
527814
531198
647609
647361
666523
577961
604661
643090
612472
641958
492670
420768
484954
520482
530010
521021
531116
532948
536616
629298
601635
788972
464365
531215
554363
666853
531203
507309
520460
531204
519849
565168
650157
531117
533369
584087
649546
596901
623261
531981
524621
530061
560783
637003
641127
533559
]
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 (520841 , 533015 , 649975 , 681331 , 668501 , 590321 , 644268 , 600175 , 640700 , 788788 , 475227 , 527797 , 411078 , 531206 , 524196 , 536580 , 523521 , 531211 , 512535 , 527814 , 531198 , 647609 , 647361 , 666523 , 577961 , 604661 , 643090 , 612472 , 641958 , 492670 , 420768 , 484954 , 520482 , 530010 , 521021 , 531116 , 532948 , 536616 , 629298 , 601635 , 788972 , 464365 , 531215 , 554363 , 666853 , 531203 , 507309 , 520460 , 531204 , 519849 , 565168 , 650157 , 531117 , 533369 , 584087 , 649546 , 596901 , 623261 , 531981 , 524621 , 530061 , 560783 , 637003 , 641127 , 533559 );
Copy
5
2.19 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
411078
420768
464365
475227
484954
492670
507309
512535
519849
520460
520482
520841
521021
523521
524196
524621
527797
527814
530010
530061
531116
531117
531198
531203
531204
531206
531211
531215
531981
532948
533015
533369
533559
536580
536616
554363
560783
565168
577961
584087
590321
596901
600175
601635
604661
612472
623261
629298
637003
640700
641127
641958
643090
644268
647361
647609
649546
649975
650157
666523
666853
668501
681331
788788
788972
]
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 (411078 , 420768 , 464365 , 475227 , 484954 , 492670 , 507309 , 512535 , 519849 , 520460 , 520482 , 520841 , 521021 , 523521 , 524196 , 524621 , 527797 , 527814 , 530010 , 530061 , 531116 , 531117 , 531198 , 531203 , 531204 , 531206 , 531211 , 531215 , 531981 , 532948 , 533015 , 533369 , 533559 , 536580 , 536616 , 554363 , 560783 , 565168 , 577961 , 584087 , 590321 , 596901 , 600175 , 601635 , 604661 , 612472 , 623261 , 629298 , 637003 , 640700 , 641127 , 641958 , 643090 , 644268 , 647361 , 647609 , 649546 , 649975 , 650157 , 666523 , 666853 , 668501 , 681331 , 788788 , 788972 );
Copy
6
114.67 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
411078
420768
464365
475227
484954
492670
507309
512535
519849
520460
520482
520841
521021
523521
524196
524621
527797
527814
530010
530061
531116
531117
531198
531203
531204
531206
531211
531215
531981
532948
533015
533369
533559
536580
536616
554363
560783
565168
577961
584087
590321
596901
600175
601635
604661
612472
623261
629298
637003
640700
641127
641958
643090
644268
647361
647609
649546
649975
650157
666523
666853
668501
681331
788788
788972
]
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 (411078 , 420768 , 464365 , 475227 , 484954 , 492670 , 507309 , 512535 , 519849 , 520460 , 520482 , 520841 , 521021 , 523521 , 524196 , 524621 , 527797 , 527814 , 530010 , 530061 , 531116 , 531117 , 531198 , 531203 , 531204 , 531206 , 531211 , 531215 , 531981 , 532948 , 533015 , 533369 , 533559 , 536580 , 536616 , 554363 , 560783 , 565168 , 577961 , 584087 , 590321 , 596901 , 600175 , 601635 , 604661 , 612472 , 623261 , 629298 , 637003 , 640700 , 641127 , 641958 , 643090 , 644268 , 647361 , 647609 , 649546 , 649975 , 650157 , 666523 , 666853 , 668501 , 681331 , 788788 , 788972 );
Copy