3
9.89 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
465717
535352
762058
526541
551154
674180
809239
795653
778251
574019
800291
591356
601174
528720
812620
758233
752065
614830
825680
517988
558533
696614
614798
795458
713247
628854
745929
769897
764285
614782
423988
794892
652180
514280
455326
561529
652895
740694
726968
723103
500803
800677
806842
483313
569389
639019
453138
527285
522802
661395
444961
582574
521110
809466
454996
524188
488408
574243
521505
449356
493212
485209
446437
598168
606799
]
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 (465717 , 535352 , 762058 , 526541 , 551154 , 674180 , 809239 , 795653 , 778251 , 574019 , 800291 , 591356 , 601174 , 528720 , 812620 , 758233 , 752065 , 614830 , 825680 , 517988 , 558533 , 696614 , 614798 , 795458 , 713247 , 628854 , 745929 , 769897 , 764285 , 614782 , 423988 , 794892 , 652180 , 514280 , 455326 , 561529 , 652895 , 740694 , 726968 , 723103 , 500803 , 800677 , 806842 , 483313 , 569389 , 639019 , 453138 , 527285 , 522802 , 661395 , 444961 , 582574 , 521110 , 809466 , 454996 , 524188 , 488408 , 574243 , 521505 , 449356 , 493212 , 485209 , 446437 , 598168 , 606799 );
Copy
4
2.26 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
423988
444961
446437
449356
453138
454996
455326
465717
483313
485209
488408
493212
500803
514280
517988
521110
521505
522802
524188
526541
527285
528720
535352
551154
558533
561529
569389
574019
574243
582574
591356
598168
601174
606799
614782
614798
614830
628854
639019
652180
652895
661395
674180
696614
713247
723103
726968
740694
745929
752065
758233
762058
764285
769897
778251
794892
795458
795653
800291
800677
806842
809239
809466
812620
825680
]
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 (423988 , 444961 , 446437 , 449356 , 453138 , 454996 , 455326 , 465717 , 483313 , 485209 , 488408 , 493212 , 500803 , 514280 , 517988 , 521110 , 521505 , 522802 , 524188 , 526541 , 527285 , 528720 , 535352 , 551154 , 558533 , 561529 , 569389 , 574019 , 574243 , 582574 , 591356 , 598168 , 601174 , 606799 , 614782 , 614798 , 614830 , 628854 , 639019 , 652180 , 652895 , 661395 , 674180 , 696614 , 713247 , 723103 , 726968 , 740694 , 745929 , 752065 , 758233 , 762058 , 764285 , 769897 , 778251 , 794892 , 795458 , 795653 , 800291 , 800677 , 806842 , 809239 , 809466 , 812620 , 825680 );
Copy
5
70.50 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
423988
444961
446437
449356
453138
454996
455326
465717
483313
485209
488408
493212
500803
514280
517988
521110
521505
522802
524188
526541
527285
528720
535352
551154
558533
561529
569389
574019
574243
582574
591356
598168
601174
606799
614782
614798
614830
628854
639019
652180
652895
661395
674180
696614
713247
723103
726968
740694
745929
752065
758233
762058
764285
769897
778251
794892
795458
795653
800291
800677
806842
809239
809466
812620
825680
]
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 (423988 , 444961 , 446437 , 449356 , 453138 , 454996 , 455326 , 465717 , 483313 , 485209 , 488408 , 493212 , 500803 , 514280 , 517988 , 521110 , 521505 , 522802 , 524188 , 526541 , 527285 , 528720 , 535352 , 551154 , 558533 , 561529 , 569389 , 574019 , 574243 , 582574 , 591356 , 598168 , 601174 , 606799 , 614782 , 614798 , 614830 , 628854 , 639019 , 652180 , 652895 , 661395 , 674180 , 696614 , 713247 , 723103 , 726968 , 740694 , 745929 , 752065 , 758233 , 762058 , 764285 , 769897 , 778251 , 794892 , 795458 , 795653 , 800291 , 800677 , 806842 , 809239 , 809466 , 812620 , 825680 );
Copy