3
10.96 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
824737
818967
454500
630893
640494
797730
793374
569777
734103
690314
760775
795354
807020
772682
786441
569781
814685
738340
614407
765481
742927
711275
398955
423764
727399
746471
744828
745305
486756
429406
604706
642832
788304
383643
820147
455974
445414
815982
448703
465208
448036
472917
407011
442254
442211
456787
800030
497228
633173
745306
440966
514687
442255
531905
511911
514149
600864
600763
442248
606993
514141
494043
635783
440581
442239
442320
478981
500477
]
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 (824737 , 818967 , 454500 , 630893 , 640494 , 797730 , 793374 , 569777 , 734103 , 690314 , 760775 , 795354 , 807020 , 772682 , 786441 , 569781 , 814685 , 738340 , 614407 , 765481 , 742927 , 711275 , 398955 , 423764 , 727399 , 746471 , 744828 , 745305 , 486756 , 429406 , 604706 , 642832 , 788304 , 383643 , 820147 , 455974 , 445414 , 815982 , 448703 , 465208 , 448036 , 472917 , 407011 , 442254 , 442211 , 456787 , 800030 , 497228 , 633173 , 745306 , 440966 , 514687 , 442255 , 531905 , 511911 , 514149 , 600864 , 600763 , 442248 , 606993 , 514141 , 494043 , 635783 , 440581 , 442239 , 442320 , 478981 , 500477 );
Copy
4
2.49 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
383643
398955
407011
423764
429406
440581
440966
442211
442239
442248
442254
442255
442320
445414
448036
448703
454500
455974
456787
465208
472917
478981
486756
494043
497228
500477
511911
514141
514149
514687
531905
569777
569781
600763
600864
604706
606993
614407
630893
633173
635783
640494
642832
690314
711275
727399
734103
738340
742927
744828
745305
745306
746471
760775
765481
772682
786441
788304
793374
795354
797730
800030
807020
814685
815982
818967
820147
824737
]
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 (383643 , 398955 , 407011 , 423764 , 429406 , 440581 , 440966 , 442211 , 442239 , 442248 , 442254 , 442255 , 442320 , 445414 , 448036 , 448703 , 454500 , 455974 , 456787 , 465208 , 472917 , 478981 , 486756 , 494043 , 497228 , 500477 , 511911 , 514141 , 514149 , 514687 , 531905 , 569777 , 569781 , 600763 , 600864 , 604706 , 606993 , 614407 , 630893 , 633173 , 635783 , 640494 , 642832 , 690314 , 711275 , 727399 , 734103 , 738340 , 742927 , 744828 , 745305 , 745306 , 746471 , 760775 , 765481 , 772682 , 786441 , 788304 , 793374 , 795354 , 797730 , 800030 , 807020 , 814685 , 815982 , 818967 , 820147 , 824737 );
Copy
5
76.03 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
383643
398955
407011
423764
429406
440581
440966
442211
442239
442248
442254
442255
442320
445414
448036
448703
454500
455974
456787
465208
472917
478981
486756
494043
497228
500477
511911
514141
514149
514687
531905
569777
569781
600763
600864
604706
606993
614407
630893
633173
635783
640494
642832
690314
711275
727399
734103
738340
742927
744828
745305
745306
746471
760775
765481
772682
786441
788304
793374
795354
797730
800030
807020
814685
815982
818967
820147
824737
]
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 (383643 , 398955 , 407011 , 423764 , 429406 , 440581 , 440966 , 442211 , 442239 , 442248 , 442254 , 442255 , 442320 , 445414 , 448036 , 448703 , 454500 , 455974 , 456787 , 465208 , 472917 , 478981 , 486756 , 494043 , 497228 , 500477 , 511911 , 514141 , 514149 , 514687 , 531905 , 569777 , 569781 , 600763 , 600864 , 604706 , 606993 , 614407 , 630893 , 633173 , 635783 , 640494 , 642832 , 690314 , 711275 , 727399 , 734103 , 738340 , 742927 , 744828 , 745305 , 745306 , 746471 , 760775 , 765481 , 772682 , 786441 , 788304 , 793374 , 795354 , 797730 , 800030 , 807020 , 814685 , 815982 , 818967 , 820147 , 824737 );
Copy