3
10.43 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
732940
764716
783864
750864
574020
812407
585057
827505
471179
554541
471104
409577
816670
456995
631767
643330
800042
732944
466863
468357
551822
585780
600922
777784
783282
669318
606931
613679
783849
736207
478010
825221
554760
578187
599591
803148
810640
786726
767952
610066
452963
452978
439382
716550
587148
595028
588517
595806
778195
750602
748521
452949
472409
457086
681498
690020
460562
472266
450172
578682
677259
479204
452953
662879
450990
483709
470064
]
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 (732940 , 764716 , 783864 , 750864 , 574020 , 812407 , 585057 , 827505 , 471179 , 554541 , 471104 , 409577 , 816670 , 456995 , 631767 , 643330 , 800042 , 732944 , 466863 , 468357 , 551822 , 585780 , 600922 , 777784 , 783282 , 669318 , 606931 , 613679 , 783849 , 736207 , 478010 , 825221 , 554760 , 578187 , 599591 , 803148 , 810640 , 786726 , 767952 , 610066 , 452963 , 452978 , 439382 , 716550 , 587148 , 595028 , 588517 , 595806 , 778195 , 750602 , 748521 , 452949 , 472409 , 457086 , 681498 , 690020 , 460562 , 472266 , 450172 , 578682 , 677259 , 479204 , 452953 , 662879 , 450990 , 483709 , 470064 );
Copy
4
2.95 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
409577
439382
450172
450990
452949
452953
452963
452978
456995
457086
460562
466863
468357
470064
471104
471179
472266
472409
478010
479204
483709
551822
554541
554760
574020
578187
578682
585057
585780
587148
588517
595028
595806
599591
600922
606931
610066
613679
631767
643330
662879
669318
677259
681498
690020
716550
732940
732944
736207
748521
750602
750864
764716
767952
777784
778195
783282
783849
783864
786726
800042
803148
810640
812407
816670
825221
827505
]
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 (409577 , 439382 , 450172 , 450990 , 452949 , 452953 , 452963 , 452978 , 456995 , 457086 , 460562 , 466863 , 468357 , 470064 , 471104 , 471179 , 472266 , 472409 , 478010 , 479204 , 483709 , 551822 , 554541 , 554760 , 574020 , 578187 , 578682 , 585057 , 585780 , 587148 , 588517 , 595028 , 595806 , 599591 , 600922 , 606931 , 610066 , 613679 , 631767 , 643330 , 662879 , 669318 , 677259 , 681498 , 690020 , 716550 , 732940 , 732944 , 736207 , 748521 , 750602 , 750864 , 764716 , 767952 , 777784 , 778195 , 783282 , 783849 , 783864 , 786726 , 800042 , 803148 , 810640 , 812407 , 816670 , 825221 , 827505 );
Copy
5
92.12 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
409577
439382
450172
450990
452949
452953
452963
452978
456995
457086
460562
466863
468357
470064
471104
471179
472266
472409
478010
479204
483709
551822
554541
554760
574020
578187
578682
585057
585780
587148
588517
595028
595806
599591
600922
606931
610066
613679
631767
643330
662879
669318
677259
681498
690020
716550
732940
732944
736207
748521
750602
750864
764716
767952
777784
778195
783282
783849
783864
786726
800042
803148
810640
812407
816670
825221
827505
]
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 (409577 , 439382 , 450172 , 450990 , 452949 , 452953 , 452963 , 452978 , 456995 , 457086 , 460562 , 466863 , 468357 , 470064 , 471104 , 471179 , 472266 , 472409 , 478010 , 479204 , 483709 , 551822 , 554541 , 554760 , 574020 , 578187 , 578682 , 585057 , 585780 , 587148 , 588517 , 595028 , 595806 , 599591 , 600922 , 606931 , 610066 , 613679 , 631767 , 643330 , 662879 , 669318 , 677259 , 681498 , 690020 , 716550 , 732940 , 732944 , 736207 , 748521 , 750602 , 750864 , 764716 , 767952 , 777784 , 778195 , 783282 , 783849 , 783864 , 786726 , 800042 , 803148 , 810640 , 812407 , 816670 , 825221 , 827505 );
Copy