3
10.86 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
564901
417682
602969
735654
520778
524535
649596
702677
633123
601613
632663
557833
547434
445672
537863
666895
630550
639716
413826
718089
724478
808064
532812
545410
639745
615451
724498
746235
777533
508796
433968
814437
553487
714086
641972
797068
742622
794824
728239
770102
465097
666850
633502
555485
666188
492171
555291
635275
429482
585084
560969
573411
587176
598975
791209
507881
523205
524533
495459
603415
511932
482191
641955
529794
647893
]
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 (564901 , 417682 , 602969 , 735654 , 520778 , 524535 , 649596 , 702677 , 633123 , 601613 , 632663 , 557833 , 547434 , 445672 , 537863 , 666895 , 630550 , 639716 , 413826 , 718089 , 724478 , 808064 , 532812 , 545410 , 639745 , 615451 , 724498 , 746235 , 777533 , 508796 , 433968 , 814437 , 553487 , 714086 , 641972 , 797068 , 742622 , 794824 , 728239 , 770102 , 465097 , 666850 , 633502 , 555485 , 666188 , 492171 , 555291 , 635275 , 429482 , 585084 , 560969 , 573411 , 587176 , 598975 , 791209 , 507881 , 523205 , 524533 , 495459 , 603415 , 511932 , 482191 , 641955 , 529794 , 647893 );
Copy
4
2.53 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
413826
417682
429482
433968
445672
465097
482191
492171
495459
507881
508796
511932
520778
523205
524533
524535
529794
532812
537863
545410
547434
553487
555291
555485
557833
560969
564901
573411
585084
587176
598975
601613
602969
603415
615451
630550
632663
633123
633502
635275
639716
639745
641955
641972
647893
649596
666188
666850
666895
702677
714086
718089
724478
724498
728239
735654
742622
746235
770102
777533
791209
794824
797068
808064
814437
]
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 (413826 , 417682 , 429482 , 433968 , 445672 , 465097 , 482191 , 492171 , 495459 , 507881 , 508796 , 511932 , 520778 , 523205 , 524533 , 524535 , 529794 , 532812 , 537863 , 545410 , 547434 , 553487 , 555291 , 555485 , 557833 , 560969 , 564901 , 573411 , 585084 , 587176 , 598975 , 601613 , 602969 , 603415 , 615451 , 630550 , 632663 , 633123 , 633502 , 635275 , 639716 , 639745 , 641955 , 641972 , 647893 , 649596 , 666188 , 666850 , 666895 , 702677 , 714086 , 718089 , 724478 , 724498 , 728239 , 735654 , 742622 , 746235 , 770102 , 777533 , 791209 , 794824 , 797068 , 808064 , 814437 );
Copy
5
126.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
413826
417682
429482
433968
445672
465097
482191
492171
495459
507881
508796
511932
520778
523205
524533
524535
529794
532812
537863
545410
547434
553487
555291
555485
557833
560969
564901
573411
585084
587176
598975
601613
602969
603415
615451
630550
632663
633123
633502
635275
639716
639745
641955
641972
647893
649596
666188
666850
666895
702677
714086
718089
724478
724498
728239
735654
742622
746235
770102
777533
791209
794824
797068
808064
814437
]
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 (413826 , 417682 , 429482 , 433968 , 445672 , 465097 , 482191 , 492171 , 495459 , 507881 , 508796 , 511932 , 520778 , 523205 , 524533 , 524535 , 529794 , 532812 , 537863 , 545410 , 547434 , 553487 , 555291 , 555485 , 557833 , 560969 , 564901 , 573411 , 585084 , 587176 , 598975 , 601613 , 602969 , 603415 , 615451 , 630550 , 632663 , 633123 , 633502 , 635275 , 639716 , 639745 , 641955 , 641972 , 647893 , 649596 , 666188 , 666850 , 666895 , 702677 , 714086 , 718089 , 724478 , 724498 , 728239 , 735654 , 742622 , 746235 , 770102 , 777533 , 791209 , 794824 , 797068 , 808064 , 814437 );
Copy