3
11.98 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
824806
825715
763427
487514
6609
741083
707250
555177
732443
676491
647645
772991
765278
743933
793959
814837
477896
620340
688997
493127
814809
815829
525311
800658
785761
531405
582573
563009
807529
774613
532924
414960
803749
398824
421426
477968
448689
457458
790888
825826
424379
687500
730352
802621
756063
655838
469389
516972
644373
489691
605131
767839
577048
534256
511564
621087
520526
503155
430814
548057
689622
527267
564850
457440
631957
]
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 (824806 , 825715 , 763427 , 487514 , 6609 , 741083 , 707250 , 555177 , 732443 , 676491 , 647645 , 772991 , 765278 , 743933 , 793959 , 814837 , 477896 , 620340 , 688997 , 493127 , 814809 , 815829 , 525311 , 800658 , 785761 , 531405 , 582573 , 563009 , 807529 , 774613 , 532924 , 414960 , 803749 , 398824 , 421426 , 477968 , 448689 , 457458 , 790888 , 825826 , 424379 , 687500 , 730352 , 802621 , 756063 , 655838 , 469389 , 516972 , 644373 , 489691 , 605131 , 767839 , 577048 , 534256 , 511564 , 621087 , 520526 , 503155 , 430814 , 548057 , 689622 , 527267 , 564850 , 457440 , 631957 );
Copy
4
2.83 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
6609
398824
414960
421426
424379
430814
448689
457440
457458
469389
477896
477968
487514
489691
493127
503155
511564
516972
520526
525311
527267
531405
532924
534256
548057
555177
563009
564850
577048
582573
605131
620340
621087
631957
644373
647645
655838
676491
687500
688997
689622
707250
730352
732443
741083
743933
756063
763427
765278
767839
772991
774613
785761
790888
793959
800658
802621
803749
807529
814809
814837
815829
824806
825715
825826
]
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 (6609 , 398824 , 414960 , 421426 , 424379 , 430814 , 448689 , 457440 , 457458 , 469389 , 477896 , 477968 , 487514 , 489691 , 493127 , 503155 , 511564 , 516972 , 520526 , 525311 , 527267 , 531405 , 532924 , 534256 , 548057 , 555177 , 563009 , 564850 , 577048 , 582573 , 605131 , 620340 , 621087 , 631957 , 644373 , 647645 , 655838 , 676491 , 687500 , 688997 , 689622 , 707250 , 730352 , 732443 , 741083 , 743933 , 756063 , 763427 , 765278 , 767839 , 772991 , 774613 , 785761 , 790888 , 793959 , 800658 , 802621 , 803749 , 807529 , 814809 , 814837 , 815829 , 824806 , 825715 , 825826 );
Copy
5
83.15 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
6609
398824
414960
421426
424379
430814
448689
457440
457458
469389
477896
477968
487514
489691
493127
503155
511564
516972
520526
525311
527267
531405
532924
534256
548057
555177
563009
564850
577048
582573
605131
620340
621087
631957
644373
647645
655838
676491
687500
688997
689622
707250
730352
732443
741083
743933
756063
763427
765278
767839
772991
774613
785761
790888
793959
800658
802621
803749
807529
814809
814837
815829
824806
825715
825826
]
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 (6609 , 398824 , 414960 , 421426 , 424379 , 430814 , 448689 , 457440 , 457458 , 469389 , 477896 , 477968 , 487514 , 489691 , 493127 , 503155 , 511564 , 516972 , 520526 , 525311 , 527267 , 531405 , 532924 , 534256 , 548057 , 555177 , 563009 , 564850 , 577048 , 582573 , 605131 , 620340 , 621087 , 631957 , 644373 , 647645 , 655838 , 676491 , 687500 , 688997 , 689622 , 707250 , 730352 , 732443 , 741083 , 743933 , 756063 , 763427 , 765278 , 767839 , 772991 , 774613 , 785761 , 790888 , 793959 , 800658 , 802621 , 803749 , 807529 , 814809 , 814837 , 815829 , 824806 , 825715 , 825826 );
Copy