3
11.11 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
823762
823882
795830
769651
397144
803464
620883
469818
542444
803212
694141
784250
761257
763529
784682
782930
797169
437901
622565
788247
769077
758737
435453
815226
652773
638181
795989
745805
810643
453322
791368
636449
418971
559564
707693
766096
824359
525369
620470
501714
527384
608236
652721
710342
714198
741049
707431
585904
727555
606705
764319
502706
561627
607117
538062
596763
451238
465295
584438
436091
437896
507733
]
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 (823762 , 823882 , 795830 , 769651 , 397144 , 803464 , 620883 , 469818 , 542444 , 803212 , 694141 , 784250 , 761257 , 763529 , 784682 , 782930 , 797169 , 437901 , 622565 , 788247 , 769077 , 758737 , 435453 , 815226 , 652773 , 638181 , 795989 , 745805 , 810643 , 453322 , 791368 , 636449 , 418971 , 559564 , 707693 , 766096 , 824359 , 525369 , 620470 , 501714 , 527384 , 608236 , 652721 , 710342 , 714198 , 741049 , 707431 , 585904 , 727555 , 606705 , 764319 , 502706 , 561627 , 607117 , 538062 , 596763 , 451238 , 465295 , 584438 , 436091 , 437896 , 507733 );
Copy
4
3.14 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
397144
418971
435453
436091
437896
437901
451238
453322
465295
469818
501714
502706
507733
525369
527384
538062
542444
559564
561627
584438
585904
596763
606705
607117
608236
620470
620883
622565
636449
638181
652721
652773
694141
707431
707693
710342
714198
727555
741049
745805
758737
761257
763529
764319
766096
769077
769651
782930
784250
784682
788247
791368
795830
795989
797169
803212
803464
810643
815226
823762
823882
824359
]
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 (397144 , 418971 , 435453 , 436091 , 437896 , 437901 , 451238 , 453322 , 465295 , 469818 , 501714 , 502706 , 507733 , 525369 , 527384 , 538062 , 542444 , 559564 , 561627 , 584438 , 585904 , 596763 , 606705 , 607117 , 608236 , 620470 , 620883 , 622565 , 636449 , 638181 , 652721 , 652773 , 694141 , 707431 , 707693 , 710342 , 714198 , 727555 , 741049 , 745805 , 758737 , 761257 , 763529 , 764319 , 766096 , 769077 , 769651 , 782930 , 784250 , 784682 , 788247 , 791368 , 795830 , 795989 , 797169 , 803212 , 803464 , 810643 , 815226 , 823762 , 823882 , 824359 );
Copy
5
76.65 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
397144
418971
435453
436091
437896
437901
451238
453322
465295
469818
501714
502706
507733
525369
527384
538062
542444
559564
561627
584438
585904
596763
606705
607117
608236
620470
620883
622565
636449
638181
652721
652773
694141
707431
707693
710342
714198
727555
741049
745805
758737
761257
763529
764319
766096
769077
769651
782930
784250
784682
788247
791368
795830
795989
797169
803212
803464
810643
815226
823762
823882
824359
]
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 (397144 , 418971 , 435453 , 436091 , 437896 , 437901 , 451238 , 453322 , 465295 , 469818 , 501714 , 502706 , 507733 , 525369 , 527384 , 538062 , 542444 , 559564 , 561627 , 584438 , 585904 , 596763 , 606705 , 607117 , 608236 , 620470 , 620883 , 622565 , 636449 , 638181 , 652721 , 652773 , 694141 , 707431 , 707693 , 710342 , 714198 , 727555 , 741049 , 745805 , 758737 , 761257 , 763529 , 764319 , 766096 , 769077 , 769651 , 782930 , 784250 , 784682 , 788247 , 791368 , 795830 , 795989 , 797169 , 803212 , 803464 , 810643 , 815226 , 823762 , 823882 , 824359 );
Copy