3
12.23 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
450190
630621
521177
666125
545539
620412
540935
753004
626501
787683
764808
421747
683036
779254
765442
398429
719418
775434
396169
549091
579650
556343
807419
740657
770386
417171
484210
503787
692995
709961
708208
717247
628935
758876
760920
765325
767360
447308
461011
479277
525785
640427
717174
453504
384862
396057
447327
507824
492125
489361
447340
517727
527480
408994
456120
624953
502191
393590
806324
459319
525830
414548
489346
527218
549860
]
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 (450190 , 630621 , 521177 , 666125 , 545539 , 620412 , 540935 , 753004 , 626501 , 787683 , 764808 , 421747 , 683036 , 779254 , 765442 , 398429 , 719418 , 775434 , 396169 , 549091 , 579650 , 556343 , 807419 , 740657 , 770386 , 417171 , 484210 , 503787 , 692995 , 709961 , 708208 , 717247 , 628935 , 758876 , 760920 , 765325 , 767360 , 447308 , 461011 , 479277 , 525785 , 640427 , 717174 , 453504 , 384862 , 396057 , 447327 , 507824 , 492125 , 489361 , 447340 , 517727 , 527480 , 408994 , 456120 , 624953 , 502191 , 393590 , 806324 , 459319 , 525830 , 414548 , 489346 , 527218 , 549860 );
Copy
4
2.60 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
384862
393590
396057
396169
398429
408994
414548
417171
421747
447308
447327
447340
450190
453504
456120
459319
461011
479277
484210
489346
489361
492125
502191
503787
507824
517727
521177
525785
525830
527218
527480
540935
545539
549091
549860
556343
579650
620412
624953
626501
630621
640427
666125
683036
692995
708208
709961
717174
717247
719418
740657
753004
758876
760920
764808
765325
765442
767360
770386
775434
779254
787683
806324
807419
]
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 (384862 , 393590 , 396057 , 396169 , 398429 , 408994 , 414548 , 417171 , 421747 , 447308 , 447327 , 447340 , 450190 , 453504 , 456120 , 459319 , 461011 , 479277 , 484210 , 489346 , 489361 , 492125 , 502191 , 503787 , 507824 , 517727 , 521177 , 525785 , 525830 , 527218 , 527480 , 540935 , 545539 , 549091 , 549860 , 556343 , 579650 , 620412 , 624953 , 626501 , 630621 , 640427 , 666125 , 683036 , 692995 , 708208 , 709961 , 717174 , 717247 , 719418 , 740657 , 753004 , 758876 , 760920 , 764808 , 765325 , 765442 , 767360 , 770386 , 775434 , 779254 , 787683 , 806324 , 807419 );
Copy
5
99.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
384862
393590
396057
396169
398429
408994
414548
417171
421747
447308
447327
447340
450190
453504
456120
459319
461011
479277
484210
489346
489361
492125
502191
503787
507824
517727
521177
525785
525830
527218
527480
540935
545539
549091
549860
556343
579650
620412
624953
626501
630621
640427
666125
683036
692995
708208
709961
717174
717247
719418
740657
753004
758876
760920
764808
765325
765442
767360
770386
775434
779254
787683
806324
807419
]
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 (384862 , 393590 , 396057 , 396169 , 398429 , 408994 , 414548 , 417171 , 421747 , 447308 , 447327 , 447340 , 450190 , 453504 , 456120 , 459319 , 461011 , 479277 , 484210 , 489346 , 489361 , 492125 , 502191 , 503787 , 507824 , 517727 , 521177 , 525785 , 525830 , 527218 , 527480 , 540935 , 545539 , 549091 , 549860 , 556343 , 579650 , 620412 , 624953 , 626501 , 630621 , 640427 , 666125 , 683036 , 692995 , 708208 , 709961 , 717174 , 717247 , 719418 , 740657 , 753004 , 758876 , 760920 , 764808 , 765325 , 765442 , 767360 , 770386 , 775434 , 779254 , 787683 , 806324 , 807419 );
Copy