4
9.48 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
662076
765545
496750
413637
545439
483996
465708
496747
412855
800313
711417
778480
604361
800601
711138
766897
719725
817199
636049
761706
552692
752565
799567
761740
794071
417455
656635
398651
790437
740787
792050
722931
810210
586121
821725
662927
637965
767236
440895
673954
762913
453820
812842
417448
808337
526259
642162
467970
431893
727923
600128
656636
420462
564832
386898
450013
468829
440954
390024
512613
501253
505526
514949
417449
605762
505611
567757
558899
]
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 (662076 , 765545 , 496750 , 413637 , 545439 , 483996 , 465708 , 496747 , 412855 , 800313 , 711417 , 778480 , 604361 , 800601 , 711138 , 766897 , 719725 , 817199 , 636049 , 761706 , 552692 , 752565 , 799567 , 761740 , 794071 , 417455 , 656635 , 398651 , 790437 , 740787 , 792050 , 722931 , 810210 , 586121 , 821725 , 662927 , 637965 , 767236 , 440895 , 673954 , 762913 , 453820 , 812842 , 417448 , 808337 , 526259 , 642162 , 467970 , 431893 , 727923 , 600128 , 656636 , 420462 , 564832 , 386898 , 450013 , 468829 , 440954 , 390024 , 512613 , 501253 , 505526 , 514949 , 417449 , 605762 , 505611 , 567757 , 558899 );
Copy
5
2.63 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
386898
390024
398651
412855
413637
417448
417449
417455
420462
431893
440895
440954
450013
453820
465708
467970
468829
483996
496747
496750
501253
505526
505611
512613
514949
526259
545439
552692
558899
564832
567757
586121
600128
604361
605762
636049
637965
642162
656635
656636
662076
662927
673954
711138
711417
719725
722931
727923
740787
752565
761706
761740
762913
765545
766897
767236
778480
790437
792050
794071
799567
800313
800601
808337
810210
812842
817199
821725
]
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 (386898 , 390024 , 398651 , 412855 , 413637 , 417448 , 417449 , 417455 , 420462 , 431893 , 440895 , 440954 , 450013 , 453820 , 465708 , 467970 , 468829 , 483996 , 496747 , 496750 , 501253 , 505526 , 505611 , 512613 , 514949 , 526259 , 545439 , 552692 , 558899 , 564832 , 567757 , 586121 , 600128 , 604361 , 605762 , 636049 , 637965 , 642162 , 656635 , 656636 , 662076 , 662927 , 673954 , 711138 , 711417 , 719725 , 722931 , 727923 , 740787 , 752565 , 761706 , 761740 , 762913 , 765545 , 766897 , 767236 , 778480 , 790437 , 792050 , 794071 , 799567 , 800313 , 800601 , 808337 , 810210 , 812842 , 817199 , 821725 );
Copy
6
98.19 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
386898
390024
398651
412855
413637
417448
417449
417455
420462
431893
440895
440954
450013
453820
465708
467970
468829
483996
496747
496750
501253
505526
505611
512613
514949
526259
545439
552692
558899
564832
567757
586121
600128
604361
605762
636049
637965
642162
656635
656636
662076
662927
673954
711138
711417
719725
722931
727923
740787
752565
761706
761740
762913
765545
766897
767236
778480
790437
792050
794071
799567
800313
800601
808337
810210
812842
817199
821725
]
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 (386898 , 390024 , 398651 , 412855 , 413637 , 417448 , 417449 , 417455 , 420462 , 431893 , 440895 , 440954 , 450013 , 453820 , 465708 , 467970 , 468829 , 483996 , 496747 , 496750 , 501253 , 505526 , 505611 , 512613 , 514949 , 526259 , 545439 , 552692 , 558899 , 564832 , 567757 , 586121 , 600128 , 604361 , 605762 , 636049 , 637965 , 642162 , 656635 , 656636 , 662076 , 662927 , 673954 , 711138 , 711417 , 719725 , 722931 , 727923 , 740787 , 752565 , 761706 , 761740 , 762913 , 765545 , 766897 , 767236 , 778480 , 790437 , 792050 , 794071 , 799567 , 800313 , 800601 , 808337 , 810210 , 812842 , 817199 , 821725 );
Copy