3
8.73 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
482278
584995
630301
630547
537925
544803
719397
736539
821215
702762
729187
692100
686255
800683
742137
734022
799756
54301
433937
625597
736943
733416
721941
696929
726657
716409
449911
496763
625578
700179
30958
810191
617730
733538
483610
552308
720621
714730
567402
757151
420238
480975
454938
461579
567745
484920
639897
465013
679721
524004
560387
510887
454523
523958
527014
582790
456024
513730
496762
423027
557118
556728
424746
]
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 (482278 , 584995 , 630301 , 630547 , 537925 , 544803 , 719397 , 736539 , 821215 , 702762 , 729187 , 692100 , 686255 , 800683 , 742137 , 734022 , 799756 , 54301 , 433937 , 625597 , 736943 , 733416 , 721941 , 696929 , 726657 , 716409 , 449911 , 496763 , 625578 , 700179 , 30958 , 810191 , 617730 , 733538 , 483610 , 552308 , 720621 , 714730 , 567402 , 757151 , 420238 , 480975 , 454938 , 461579 , 567745 , 484920 , 639897 , 465013 , 679721 , 524004 , 560387 , 510887 , 454523 , 523958 , 527014 , 582790 , 456024 , 513730 , 496762 , 423027 , 557118 , 556728 , 424746 );
Copy
4
2.37 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
30958
54301
420238
423027
424746
433937
449911
454523
454938
456024
461579
465013
480975
482278
483610
484920
496762
496763
510887
513730
523958
524004
527014
537925
544803
552308
556728
557118
560387
567402
567745
582790
584995
617730
625578
625597
630301
630547
639897
679721
686255
692100
696929
700179
702762
714730
716409
719397
720621
721941
726657
729187
733416
733538
734022
736539
736943
742137
757151
799756
800683
810191
821215
]
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 (30958 , 54301 , 420238 , 423027 , 424746 , 433937 , 449911 , 454523 , 454938 , 456024 , 461579 , 465013 , 480975 , 482278 , 483610 , 484920 , 496762 , 496763 , 510887 , 513730 , 523958 , 524004 , 527014 , 537925 , 544803 , 552308 , 556728 , 557118 , 560387 , 567402 , 567745 , 582790 , 584995 , 617730 , 625578 , 625597 , 630301 , 630547 , 639897 , 679721 , 686255 , 692100 , 696929 , 700179 , 702762 , 714730 , 716409 , 719397 , 720621 , 721941 , 726657 , 729187 , 733416 , 733538 , 734022 , 736539 , 736943 , 742137 , 757151 , 799756 , 800683 , 810191 , 821215 );
Copy
5
78.17 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
30958
54301
420238
423027
424746
433937
449911
454523
454938
456024
461579
465013
480975
482278
483610
484920
496762
496763
510887
513730
523958
524004
527014
537925
544803
552308
556728
557118
560387
567402
567745
582790
584995
617730
625578
625597
630301
630547
639897
679721
686255
692100
696929
700179
702762
714730
716409
719397
720621
721941
726657
729187
733416
733538
734022
736539
736943
742137
757151
799756
800683
810191
821215
]
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 (30958 , 54301 , 420238 , 423027 , 424746 , 433937 , 449911 , 454523 , 454938 , 456024 , 461579 , 465013 , 480975 , 482278 , 483610 , 484920 , 496762 , 496763 , 510887 , 513730 , 523958 , 524004 , 527014 , 537925 , 544803 , 552308 , 556728 , 557118 , 560387 , 567402 , 567745 , 582790 , 584995 , 617730 , 625578 , 625597 , 630301 , 630547 , 639897 , 679721 , 686255 , 692100 , 696929 , 700179 , 702762 , 714730 , 716409 , 719397 , 720621 , 721941 , 726657 , 729187 , 733416 , 733538 , 734022 , 736539 , 736943 , 742137 , 757151 , 799756 , 800683 , 810191 , 821215 );
Copy