3
9.60 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
510721
765890
745685
51972
739222
462260
746465
664514
387046
471580
694499
732890
584661
432256
449643
487095
504222
492653
424720
435045
645316
727355
384243
622587
568847
732872
809340
692153
826220
518109
523512
557421
719471
779384
703646
721610
804125
518787
610601
632318
382212
554563
612029
632279
805313
549163
424742
727018
623449
488888
698451
612044
614694
628348
498899
689622
555895
625968
561023
601265
505498
563527
]
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 (510721 , 765890 , 745685 , 51972 , 739222 , 462260 , 746465 , 664514 , 387046 , 471580 , 694499 , 732890 , 584661 , 432256 , 449643 , 487095 , 504222 , 492653 , 424720 , 435045 , 645316 , 727355 , 384243 , 622587 , 568847 , 732872 , 809340 , 692153 , 826220 , 518109 , 523512 , 557421 , 719471 , 779384 , 703646 , 721610 , 804125 , 518787 , 610601 , 632318 , 382212 , 554563 , 612029 , 632279 , 805313 , 549163 , 424742 , 727018 , 623449 , 488888 , 698451 , 612044 , 614694 , 628348 , 498899 , 689622 , 555895 , 625968 , 561023 , 601265 , 505498 , 563527 );
Copy
4
2.23 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
51972
382212
384243
387046
424720
424742
432256
435045
449643
462260
471580
487095
488888
492653
498899
504222
505498
510721
518109
518787
523512
549163
554563
555895
557421
561023
563527
568847
584661
601265
610601
612029
612044
614694
622587
623449
625968
628348
632279
632318
645316
664514
689622
692153
694499
698451
703646
719471
721610
727018
727355
732872
732890
739222
745685
746465
765890
779384
804125
805313
809340
826220
]
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 (51972 , 382212 , 384243 , 387046 , 424720 , 424742 , 432256 , 435045 , 449643 , 462260 , 471580 , 487095 , 488888 , 492653 , 498899 , 504222 , 505498 , 510721 , 518109 , 518787 , 523512 , 549163 , 554563 , 555895 , 557421 , 561023 , 563527 , 568847 , 584661 , 601265 , 610601 , 612029 , 612044 , 614694 , 622587 , 623449 , 625968 , 628348 , 632279 , 632318 , 645316 , 664514 , 689622 , 692153 , 694499 , 698451 , 703646 , 719471 , 721610 , 727018 , 727355 , 732872 , 732890 , 739222 , 745685 , 746465 , 765890 , 779384 , 804125 , 805313 , 809340 , 826220 );
Copy
5
75.83 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
51972
382212
384243
387046
424720
424742
432256
435045
449643
462260
471580
487095
488888
492653
498899
504222
505498
510721
518109
518787
523512
549163
554563
555895
557421
561023
563527
568847
584661
601265
610601
612029
612044
614694
622587
623449
625968
628348
632279
632318
645316
664514
689622
692153
694499
698451
703646
719471
721610
727018
727355
732872
732890
739222
745685
746465
765890
779384
804125
805313
809340
826220
]
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 (51972 , 382212 , 384243 , 387046 , 424720 , 424742 , 432256 , 435045 , 449643 , 462260 , 471580 , 487095 , 488888 , 492653 , 498899 , 504222 , 505498 , 510721 , 518109 , 518787 , 523512 , 549163 , 554563 , 555895 , 557421 , 561023 , 563527 , 568847 , 584661 , 601265 , 610601 , 612029 , 612044 , 614694 , 622587 , 623449 , 625968 , 628348 , 632279 , 632318 , 645316 , 664514 , 689622 , 692153 , 694499 , 698451 , 703646 , 719471 , 721610 , 727018 , 727355 , 732872 , 732890 , 739222 , 745685 , 746465 , 765890 , 779384 , 804125 , 805313 , 809340 , 826220 );
Copy