3
14.67 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
631976
541549
511364
783547
764441
426062
798301
726215
799557
739587
763292
764515
716727
623372
780252
786619
792113
716640
791970
534928
638136
791133
749197
765755
769615
810590
427850
701500
590266
751083
780925
806868
781194
443602
631581
793844
741030
756259
787802
444803
495928
434817
558881
593168
749187
496207
522161
417319
422402
451216
581989
555071
436115
419931
459611
459534
488051
497014
464204
558820
459488
633796
523819
533950
634153
593992
]
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 (631976 , 541549 , 511364 , 783547 , 764441 , 426062 , 798301 , 726215 , 799557 , 739587 , 763292 , 764515 , 716727 , 623372 , 780252 , 786619 , 792113 , 716640 , 791970 , 534928 , 638136 , 791133 , 749197 , 765755 , 769615 , 810590 , 427850 , 701500 , 590266 , 751083 , 780925 , 806868 , 781194 , 443602 , 631581 , 793844 , 741030 , 756259 , 787802 , 444803 , 495928 , 434817 , 558881 , 593168 , 749187 , 496207 , 522161 , 417319 , 422402 , 451216 , 581989 , 555071 , 436115 , 419931 , 459611 , 459534 , 488051 , 497014 , 464204 , 558820 , 459488 , 633796 , 523819 , 533950 , 634153 , 593992 );
Copy
4
1.98 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
417319
419931
422402
426062
427850
434817
436115
443602
444803
451216
459488
459534
459611
464204
488051
495928
496207
497014
511364
522161
523819
533950
534928
541549
555071
558820
558881
581989
590266
593168
593992
623372
631581
631976
633796
634153
638136
701500
716640
716727
726215
739587
741030
749187
749197
751083
756259
763292
764441
764515
765755
769615
780252
780925
781194
783547
786619
787802
791133
791970
792113
793844
798301
799557
806868
810590
]
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 (417319 , 419931 , 422402 , 426062 , 427850 , 434817 , 436115 , 443602 , 444803 , 451216 , 459488 , 459534 , 459611 , 464204 , 488051 , 495928 , 496207 , 497014 , 511364 , 522161 , 523819 , 533950 , 534928 , 541549 , 555071 , 558820 , 558881 , 581989 , 590266 , 593168 , 593992 , 623372 , 631581 , 631976 , 633796 , 634153 , 638136 , 701500 , 716640 , 716727 , 726215 , 739587 , 741030 , 749187 , 749197 , 751083 , 756259 , 763292 , 764441 , 764515 , 765755 , 769615 , 780252 , 780925 , 781194 , 783547 , 786619 , 787802 , 791133 , 791970 , 792113 , 793844 , 798301 , 799557 , 806868 , 810590 );
Copy
5
77.04 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
417319
419931
422402
426062
427850
434817
436115
443602
444803
451216
459488
459534
459611
464204
488051
495928
496207
497014
511364
522161
523819
533950
534928
541549
555071
558820
558881
581989
590266
593168
593992
623372
631581
631976
633796
634153
638136
701500
716640
716727
726215
739587
741030
749187
749197
751083
756259
763292
764441
764515
765755
769615
780252
780925
781194
783547
786619
787802
791133
791970
792113
793844
798301
799557
806868
810590
]
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 (417319 , 419931 , 422402 , 426062 , 427850 , 434817 , 436115 , 443602 , 444803 , 451216 , 459488 , 459534 , 459611 , 464204 , 488051 , 495928 , 496207 , 497014 , 511364 , 522161 , 523819 , 533950 , 534928 , 541549 , 555071 , 558820 , 558881 , 581989 , 590266 , 593168 , 593992 , 623372 , 631581 , 631976 , 633796 , 634153 , 638136 , 701500 , 716640 , 716727 , 726215 , 739587 , 741030 , 749187 , 749197 , 751083 , 756259 , 763292 , 764441 , 764515 , 765755 , 769615 , 780252 , 780925 , 781194 , 783547 , 786619 , 787802 , 791133 , 791970 , 792113 , 793844 , 798301 , 799557 , 806868 , 810590 );
Copy