3
11.36 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
655591
825517
552816
795803
820164
689167
824426
763462
766885
563291
673908
662443
786227
805665
783887
764060
733651
820159
722253
572662
809965
625503
460581
462658
673880
788359
749769
679306
761899
512373
761777
747563
707915
475542
486820
392665
521991
492222
482922
678696
685823
741076
547903
601880
602714
772763
401757
438978
514609
590622
461388
569629
598136
405426
519014
522208
422141
415834
732905
496585
447095
561273
439808
506794
478969
421878
597015
]
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 (655591 , 825517 , 552816 , 795803 , 820164 , 689167 , 824426 , 763462 , 766885 , 563291 , 673908 , 662443 , 786227 , 805665 , 783887 , 764060 , 733651 , 820159 , 722253 , 572662 , 809965 , 625503 , 460581 , 462658 , 673880 , 788359 , 749769 , 679306 , 761899 , 512373 , 761777 , 747563 , 707915 , 475542 , 486820 , 392665 , 521991 , 492222 , 482922 , 678696 , 685823 , 741076 , 547903 , 601880 , 602714 , 772763 , 401757 , 438978 , 514609 , 590622 , 461388 , 569629 , 598136 , 405426 , 519014 , 522208 , 422141 , 415834 , 732905 , 496585 , 447095 , 561273 , 439808 , 506794 , 478969 , 421878 , 597015 );
Copy
4
1.78 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
392665
401757
405426
415834
421878
422141
438978
439808
447095
460581
461388
462658
475542
478969
482922
486820
492222
496585
506794
512373
514609
519014
521991
522208
547903
552816
561273
563291
569629
572662
590622
597015
598136
601880
602714
625503
655591
662443
673880
673908
678696
679306
685823
689167
707915
722253
732905
733651
741076
747563
749769
761777
761899
763462
764060
766885
772763
783887
786227
788359
795803
805665
809965
820159
820164
824426
825517
]
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 (392665 , 401757 , 405426 , 415834 , 421878 , 422141 , 438978 , 439808 , 447095 , 460581 , 461388 , 462658 , 475542 , 478969 , 482922 , 486820 , 492222 , 496585 , 506794 , 512373 , 514609 , 519014 , 521991 , 522208 , 547903 , 552816 , 561273 , 563291 , 569629 , 572662 , 590622 , 597015 , 598136 , 601880 , 602714 , 625503 , 655591 , 662443 , 673880 , 673908 , 678696 , 679306 , 685823 , 689167 , 707915 , 722253 , 732905 , 733651 , 741076 , 747563 , 749769 , 761777 , 761899 , 763462 , 764060 , 766885 , 772763 , 783887 , 786227 , 788359 , 795803 , 805665 , 809965 , 820159 , 820164 , 824426 , 825517 );
Copy
5
288.59 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
392665
401757
405426
415834
421878
422141
438978
439808
447095
460581
461388
462658
475542
478969
482922
486820
492222
496585
506794
512373
514609
519014
521991
522208
547903
552816
561273
563291
569629
572662
590622
597015
598136
601880
602714
625503
655591
662443
673880
673908
678696
679306
685823
689167
707915
722253
732905
733651
741076
747563
749769
761777
761899
763462
764060
766885
772763
783887
786227
788359
795803
805665
809965
820159
820164
824426
825517
]
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 (392665 , 401757 , 405426 , 415834 , 421878 , 422141 , 438978 , 439808 , 447095 , 460581 , 461388 , 462658 , 475542 , 478969 , 482922 , 486820 , 492222 , 496585 , 506794 , 512373 , 514609 , 519014 , 521991 , 522208 , 547903 , 552816 , 561273 , 563291 , 569629 , 572662 , 590622 , 597015 , 598136 , 601880 , 602714 , 625503 , 655591 , 662443 , 673880 , 673908 , 678696 , 679306 , 685823 , 689167 , 707915 , 722253 , 732905 , 733651 , 741076 , 747563 , 749769 , 761777 , 761899 , 763462 , 764060 , 766885 , 772763 , 783887 , 786227 , 788359 , 795803 , 805665 , 809965 , 820159 , 820164 , 824426 , 825517 );
Copy