3
10.65 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
588144
725433
744803
776452
805916
744204
730555
714223
720525
802541
720464
720527
596011
770231
770252
770128
811242
709240
770168
797333
591770
802907
772465
720545
803516
593406
804441
791917
812554
584045
604754
796833
762191
613780
776736
819233
799105
799144
707361
680428
819227
811104
799168
534311
549740
460237
592999
799171
539557
398558
819649
586393
398106
586441
747094
450259
554548
542142
592671
449214
605183
498454
591161
597722
529378
508300
589683
529355
]
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 (588144 , 725433 , 744803 , 776452 , 805916 , 744204 , 730555 , 714223 , 720525 , 802541 , 720464 , 720527 , 596011 , 770231 , 770252 , 770128 , 811242 , 709240 , 770168 , 797333 , 591770 , 802907 , 772465 , 720545 , 803516 , 593406 , 804441 , 791917 , 812554 , 584045 , 604754 , 796833 , 762191 , 613780 , 776736 , 819233 , 799105 , 799144 , 707361 , 680428 , 819227 , 811104 , 799168 , 534311 , 549740 , 460237 , 592999 , 799171 , 539557 , 398558 , 819649 , 586393 , 398106 , 586441 , 747094 , 450259 , 554548 , 542142 , 592671 , 449214 , 605183 , 498454 , 591161 , 597722 , 529378 , 508300 , 589683 , 529355 );
Copy
4
3.04 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
398106
398558
449214
450259
460237
498454
508300
529355
529378
534311
539557
542142
549740
554548
584045
586393
586441
588144
589683
591161
591770
592671
592999
593406
596011
597722
604754
605183
613780
680428
707361
709240
714223
720464
720525
720527
720545
725433
730555
744204
744803
747094
762191
770128
770168
770231
770252
772465
776452
776736
791917
796833
797333
799105
799144
799168
799171
802541
802907
803516
804441
805916
811104
811242
812554
819227
819233
819649
]
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 (398106 , 398558 , 449214 , 450259 , 460237 , 498454 , 508300 , 529355 , 529378 , 534311 , 539557 , 542142 , 549740 , 554548 , 584045 , 586393 , 586441 , 588144 , 589683 , 591161 , 591770 , 592671 , 592999 , 593406 , 596011 , 597722 , 604754 , 605183 , 613780 , 680428 , 707361 , 709240 , 714223 , 720464 , 720525 , 720527 , 720545 , 725433 , 730555 , 744204 , 744803 , 747094 , 762191 , 770128 , 770168 , 770231 , 770252 , 772465 , 776452 , 776736 , 791917 , 796833 , 797333 , 799105 , 799144 , 799168 , 799171 , 802541 , 802907 , 803516 , 804441 , 805916 , 811104 , 811242 , 812554 , 819227 , 819233 , 819649 );
Copy
5
76.25 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
398106
398558
449214
450259
460237
498454
508300
529355
529378
534311
539557
542142
549740
554548
584045
586393
586441
588144
589683
591161
591770
592671
592999
593406
596011
597722
604754
605183
613780
680428
707361
709240
714223
720464
720525
720527
720545
725433
730555
744204
744803
747094
762191
770128
770168
770231
770252
772465
776452
776736
791917
796833
797333
799105
799144
799168
799171
802541
802907
803516
804441
805916
811104
811242
812554
819227
819233
819649
]
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 (398106 , 398558 , 449214 , 450259 , 460237 , 498454 , 508300 , 529355 , 529378 , 534311 , 539557 , 542142 , 549740 , 554548 , 584045 , 586393 , 586441 , 588144 , 589683 , 591161 , 591770 , 592671 , 592999 , 593406 , 596011 , 597722 , 604754 , 605183 , 613780 , 680428 , 707361 , 709240 , 714223 , 720464 , 720525 , 720527 , 720545 , 725433 , 730555 , 744204 , 744803 , 747094 , 762191 , 770128 , 770168 , 770231 , 770252 , 772465 , 776452 , 776736 , 791917 , 796833 , 797333 , 799105 , 799144 , 799168 , 799171 , 802541 , 802907 , 803516 , 804441 , 805916 , 811104 , 811242 , 812554 , 819227 , 819233 , 819649 );
Copy