3
10.54 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
559083
551988
549382
661879
573638
595868
551999
567379
549397
600111
810665
474751
813357
810987
539995
596478
549357
533628
806019
541647
810694
542190
595192
541642
573110
542196
573085
572999
573416
573949
541640
573946
573558
573720
571636
542191
576387
573663
541721
478705
427254
566059
451958
425876
452040
465618
451971
402526
452063
583280
451950
451705
419912
527454
451945
427232
452048
452032
451951
631957
541631
541632
542192
480117
542189
]
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 (559083 , 551988 , 549382 , 661879 , 573638 , 595868 , 551999 , 567379 , 549397 , 600111 , 810665 , 474751 , 813357 , 810987 , 539995 , 596478 , 549357 , 533628 , 806019 , 541647 , 810694 , 542190 , 595192 , 541642 , 573110 , 542196 , 573085 , 572999 , 573416 , 573949 , 541640 , 573946 , 573558 , 573720 , 571636 , 542191 , 576387 , 573663 , 541721 , 478705 , 427254 , 566059 , 451958 , 425876 , 452040 , 465618 , 451971 , 402526 , 452063 , 583280 , 451950 , 451705 , 419912 , 527454 , 451945 , 427232 , 452048 , 452032 , 451951 , 631957 , 541631 , 541632 , 542192 , 480117 , 542189 );
Copy
4
1.96 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
402526
419912
425876
427232
427254
451705
451945
451950
451951
451958
451971
452032
452040
452048
452063
465618
474751
478705
480117
527454
533628
539995
541631
541632
541640
541642
541647
541721
542189
542190
542191
542192
542196
549357
549382
549397
551988
551999
559083
566059
567379
571636
572999
573085
573110
573416
573558
573638
573663
573720
573946
573949
576387
583280
595192
595868
596478
600111
631957
661879
806019
810665
810694
810987
813357
]
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 (402526 , 419912 , 425876 , 427232 , 427254 , 451705 , 451945 , 451950 , 451951 , 451958 , 451971 , 452032 , 452040 , 452048 , 452063 , 465618 , 474751 , 478705 , 480117 , 527454 , 533628 , 539995 , 541631 , 541632 , 541640 , 541642 , 541647 , 541721 , 542189 , 542190 , 542191 , 542192 , 542196 , 549357 , 549382 , 549397 , 551988 , 551999 , 559083 , 566059 , 567379 , 571636 , 572999 , 573085 , 573110 , 573416 , 573558 , 573638 , 573663 , 573720 , 573946 , 573949 , 576387 , 583280 , 595192 , 595868 , 596478 , 600111 , 631957 , 661879 , 806019 , 810665 , 810694 , 810987 , 813357 );
Copy
5
68.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
402526
419912
425876
427232
427254
451705
451945
451950
451951
451958
451971
452032
452040
452048
452063
465618
474751
478705
480117
527454
533628
539995
541631
541632
541640
541642
541647
541721
542189
542190
542191
542192
542196
549357
549382
549397
551988
551999
559083
566059
567379
571636
572999
573085
573110
573416
573558
573638
573663
573720
573946
573949
576387
583280
595192
595868
596478
600111
631957
661879
806019
810665
810694
810987
813357
]
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 (402526 , 419912 , 425876 , 427232 , 427254 , 451705 , 451945 , 451950 , 451951 , 451958 , 451971 , 452032 , 452040 , 452048 , 452063 , 465618 , 474751 , 478705 , 480117 , 527454 , 533628 , 539995 , 541631 , 541632 , 541640 , 541642 , 541647 , 541721 , 542189 , 542190 , 542191 , 542192 , 542196 , 549357 , 549382 , 549397 , 551988 , 551999 , 559083 , 566059 , 567379 , 571636 , 572999 , 573085 , 573110 , 573416 , 573558 , 573638 , 573663 , 573720 , 573946 , 573949 , 576387 , 583280 , 595192 , 595868 , 596478 , 600111 , 631957 , 661879 , 806019 , 810665 , 810694 , 810987 , 813357 );
Copy