3
13.84 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
527515
527519
730858
389683
529003
527497
789273
527502
774022
527536
595538
623165
417733
322090
527526
528965
634541
722052
468749
414783
451596
563834
393810
674127
793075
809121
406105
417723
758208
471786
496993
581384
596226
536636
605399
653503
666886
621083
414635
562626
406132
645004
637107
604560
716085
469098
628415
644982
456249
537926
542213
623681
637065
642359
628403
488772
537914
541076
482538
537672
540267
637016
631597
417730
483814
634193
629967
528963
633734
614992
]
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 (527515 , 527519 , 730858 , 389683 , 529003 , 527497 , 789273 , 527502 , 774022 , 527536 , 595538 , 623165 , 417733 , 322090 , 527526 , 528965 , 634541 , 722052 , 468749 , 414783 , 451596 , 563834 , 393810 , 674127 , 793075 , 809121 , 406105 , 417723 , 758208 , 471786 , 496993 , 581384 , 596226 , 536636 , 605399 , 653503 , 666886 , 621083 , 414635 , 562626 , 406132 , 645004 , 637107 , 604560 , 716085 , 469098 , 628415 , 644982 , 456249 , 537926 , 542213 , 623681 , 637065 , 642359 , 628403 , 488772 , 537914 , 541076 , 482538 , 537672 , 540267 , 637016 , 631597 , 417730 , 483814 , 634193 , 629967 , 528963 , 633734 , 614992 );
Copy
4
1.97 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
322090
389683
393810
406105
406132
414635
414783
417723
417730
417733
451596
456249
468749
469098
471786
482538
483814
488772
496993
527497
527502
527515
527519
527526
527536
528963
528965
529003
536636
537672
537914
537926
540267
541076
542213
562626
563834
581384
595538
596226
604560
605399
614992
621083
623165
623681
628403
628415
629967
631597
633734
634193
634541
637016
637065
637107
642359
644982
645004
653503
666886
674127
716085
722052
730858
758208
774022
789273
793075
809121
]
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 (322090 , 389683 , 393810 , 406105 , 406132 , 414635 , 414783 , 417723 , 417730 , 417733 , 451596 , 456249 , 468749 , 469098 , 471786 , 482538 , 483814 , 488772 , 496993 , 527497 , 527502 , 527515 , 527519 , 527526 , 527536 , 528963 , 528965 , 529003 , 536636 , 537672 , 537914 , 537926 , 540267 , 541076 , 542213 , 562626 , 563834 , 581384 , 595538 , 596226 , 604560 , 605399 , 614992 , 621083 , 623165 , 623681 , 628403 , 628415 , 629967 , 631597 , 633734 , 634193 , 634541 , 637016 , 637065 , 637107 , 642359 , 644982 , 645004 , 653503 , 666886 , 674127 , 716085 , 722052 , 730858 , 758208 , 774022 , 789273 , 793075 , 809121 );
Copy
5
71.68 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
322090
389683
393810
406105
406132
414635
414783
417723
417730
417733
451596
456249
468749
469098
471786
482538
483814
488772
496993
527497
527502
527515
527519
527526
527536
528963
528965
529003
536636
537672
537914
537926
540267
541076
542213
562626
563834
581384
595538
596226
604560
605399
614992
621083
623165
623681
628403
628415
629967
631597
633734
634193
634541
637016
637065
637107
642359
644982
645004
653503
666886
674127
716085
722052
730858
758208
774022
789273
793075
809121
]
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 (322090 , 389683 , 393810 , 406105 , 406132 , 414635 , 414783 , 417723 , 417730 , 417733 , 451596 , 456249 , 468749 , 469098 , 471786 , 482538 , 483814 , 488772 , 496993 , 527497 , 527502 , 527515 , 527519 , 527526 , 527536 , 528963 , 528965 , 529003 , 536636 , 537672 , 537914 , 537926 , 540267 , 541076 , 542213 , 562626 , 563834 , 581384 , 595538 , 596226 , 604560 , 605399 , 614992 , 621083 , 623165 , 623681 , 628403 , 628415 , 629967 , 631597 , 633734 , 634193 , 634541 , 637016 , 637065 , 637107 , 642359 , 644982 , 645004 , 653503 , 666886 , 674127 , 716085 , 722052 , 730858 , 758208 , 774022 , 789273 , 793075 , 809121 );
Copy