3
11.74 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
578779
597255
585788
604621
597036
598136
805033
810852
796640
808997
761289
799239
739500
743634
716965
809001
443233
478985
478990
414384
463090
454652
490592
398114
480848
467569
476707
478991
494546
505591
534019
501015
518941
550288
576535
580160
580174
582377
692743
544964
550282
554374
580183
628443
603716
760169
428929
438316
434335
491299
493816
486859
468912
580180
556496
566788
554767
609057
794214
434307
416680
418145
528377
660834
585079
595256
604419
621764
]
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 (578779 , 597255 , 585788 , 604621 , 597036 , 598136 , 805033 , 810852 , 796640 , 808997 , 761289 , 799239 , 739500 , 743634 , 716965 , 809001 , 443233 , 478985 , 478990 , 414384 , 463090 , 454652 , 490592 , 398114 , 480848 , 467569 , 476707 , 478991 , 494546 , 505591 , 534019 , 501015 , 518941 , 550288 , 576535 , 580160 , 580174 , 582377 , 692743 , 544964 , 550282 , 554374 , 580183 , 628443 , 603716 , 760169 , 428929 , 438316 , 434335 , 491299 , 493816 , 486859 , 468912 , 580180 , 556496 , 566788 , 554767 , 609057 , 794214 , 434307 , 416680 , 418145 , 528377 , 660834 , 585079 , 595256 , 604419 , 621764 );
Copy
4
2.48 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
398114
414384
416680
418145
428929
434307
434335
438316
443233
454652
463090
467569
468912
476707
478985
478990
478991
480848
486859
490592
491299
493816
494546
501015
505591
518941
528377
534019
544964
550282
550288
554374
554767
556496
566788
576535
578779
580160
580174
580180
580183
582377
585079
585788
595256
597036
597255
598136
603716
604419
609057
621764
628443
660834
692743
716965
739500
743634
760169
761289
794214
796640
799239
805033
808997
809001
810852
]
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 (398114 , 414384 , 416680 , 418145 , 428929 , 434307 , 434335 , 438316 , 443233 , 454652 , 463090 , 467569 , 468912 , 476707 , 478985 , 478990 , 478991 , 480848 , 486859 , 490592 , 491299 , 493816 , 494546 , 501015 , 505591 , 518941 , 528377 , 534019 , 544964 , 550282 , 550288 , 554374 , 554767 , 556496 , 566788 , 576535 , 578779 , 580160 , 580174 , 580180 , 580183 , 582377 , 585079 , 585788 , 595256 , 597036 , 597255 , 598136 , 603716 , 604419 , 609057 , 621764 , 628443 , 660834 , 692743 , 716965 , 739500 , 743634 , 760169 , 761289 , 794214 , 796640 , 799239 , 805033 , 808997 , 809001 , 810852 );
Copy
5
178.67 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
398114
414384
416680
418145
428929
434307
434335
438316
443233
454652
463090
467569
468912
476707
478985
478990
478991
480848
486859
490592
491299
493816
494546
501015
505591
518941
528377
534019
544964
550282
550288
554374
554767
556496
566788
576535
578779
580160
580174
580180
580183
582377
585079
585788
595256
597036
597255
598136
603716
604419
609057
621764
628443
660834
692743
716965
739500
743634
760169
761289
794214
796640
799239
805033
808997
809001
810852
]
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 (398114 , 414384 , 416680 , 418145 , 428929 , 434307 , 434335 , 438316 , 443233 , 454652 , 463090 , 467569 , 468912 , 476707 , 478985 , 478990 , 478991 , 480848 , 486859 , 490592 , 491299 , 493816 , 494546 , 501015 , 505591 , 518941 , 528377 , 534019 , 544964 , 550282 , 550288 , 554374 , 554767 , 556496 , 566788 , 576535 , 578779 , 580160 , 580174 , 580180 , 580183 , 582377 , 585079 , 585788 , 595256 , 597036 , 597255 , 598136 , 603716 , 604419 , 609057 , 621764 , 628443 , 660834 , 692743 , 716965 , 739500 , 743634 , 760169 , 761289 , 794214 , 796640 , 799239 , 805033 , 808997 , 809001 , 810852 );
Copy