3
10.25 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
467970
778480
780444
766897
690066
800601
699865
711138
735174
759249
626998
636049
662076
719725
810210
817199
648099
762568
761706
761740
496750
417448
552692
790437
740787
765545
792050
808337
752565
722931
417455
391258
821725
530648
577865
656635
673954
587342
586121
398651
526259
600128
436765
453820
662927
595150
626263
637965
767236
812842
626257
455543
420462
431893
449466
545439
642162
602575
594219
727923
498550
483996
497748
450013
496747
564832
390024
594460
607518
417449
514949
505611
441697
]
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 (467970 , 778480 , 780444 , 766897 , 690066 , 800601 , 699865 , 711138 , 735174 , 759249 , 626998 , 636049 , 662076 , 719725 , 810210 , 817199 , 648099 , 762568 , 761706 , 761740 , 496750 , 417448 , 552692 , 790437 , 740787 , 765545 , 792050 , 808337 , 752565 , 722931 , 417455 , 391258 , 821725 , 530648 , 577865 , 656635 , 673954 , 587342 , 586121 , 398651 , 526259 , 600128 , 436765 , 453820 , 662927 , 595150 , 626263 , 637965 , 767236 , 812842 , 626257 , 455543 , 420462 , 431893 , 449466 , 545439 , 642162 , 602575 , 594219 , 727923 , 498550 , 483996 , 497748 , 450013 , 496747 , 564832 , 390024 , 594460 , 607518 , 417449 , 514949 , 505611 , 441697 );
Copy
4
2.79 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
390024
391258
398651
417448
417449
417455
420462
431893
436765
441697
449466
450013
453820
455543
467970
483996
496747
496750
497748
498550
505611
514949
526259
530648
545439
552692
564832
577865
586121
587342
594219
594460
595150
600128
602575
607518
626257
626263
626998
636049
637965
642162
648099
656635
662076
662927
673954
690066
699865
711138
719725
722931
727923
735174
740787
752565
759249
761706
761740
762568
765545
766897
767236
778480
780444
790437
792050
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 (390024 , 391258 , 398651 , 417448 , 417449 , 417455 , 420462 , 431893 , 436765 , 441697 , 449466 , 450013 , 453820 , 455543 , 467970 , 483996 , 496747 , 496750 , 497748 , 498550 , 505611 , 514949 , 526259 , 530648 , 545439 , 552692 , 564832 , 577865 , 586121 , 587342 , 594219 , 594460 , 595150 , 600128 , 602575 , 607518 , 626257 , 626263 , 626998 , 636049 , 637965 , 642162 , 648099 , 656635 , 662076 , 662927 , 673954 , 690066 , 699865 , 711138 , 719725 , 722931 , 727923 , 735174 , 740787 , 752565 , 759249 , 761706 , 761740 , 762568 , 765545 , 766897 , 767236 , 778480 , 780444 , 790437 , 792050 , 800601 , 808337 , 810210 , 812842 , 817199 , 821725 );
Copy
5
89.80 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
390024
391258
398651
417448
417449
417455
420462
431893
436765
441697
449466
450013
453820
455543
467970
483996
496747
496750
497748
498550
505611
514949
526259
530648
545439
552692
564832
577865
586121
587342
594219
594460
595150
600128
602575
607518
626257
626263
626998
636049
637965
642162
648099
656635
662076
662927
673954
690066
699865
711138
719725
722931
727923
735174
740787
752565
759249
761706
761740
762568
765545
766897
767236
778480
780444
790437
792050
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 (390024 , 391258 , 398651 , 417448 , 417449 , 417455 , 420462 , 431893 , 436765 , 441697 , 449466 , 450013 , 453820 , 455543 , 467970 , 483996 , 496747 , 496750 , 497748 , 498550 , 505611 , 514949 , 526259 , 530648 , 545439 , 552692 , 564832 , 577865 , 586121 , 587342 , 594219 , 594460 , 595150 , 600128 , 602575 , 607518 , 626257 , 626263 , 626998 , 636049 , 637965 , 642162 , 648099 , 656635 , 662076 , 662927 , 673954 , 690066 , 699865 , 711138 , 719725 , 722931 , 727923 , 735174 , 740787 , 752565 , 759249 , 761706 , 761740 , 762568 , 765545 , 766897 , 767236 , 778480 , 780444 , 790437 , 792050 , 800601 , 808337 , 810210 , 812842 , 817199 , 821725 );
Copy