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