3
6.37 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
794634
733417
796150
555889
638557
589666
799073
782217
576640
782265
639683
687552
555164
721488
742247
765889
718040
780930
630570
758802
811145
475219
801465
728427
729633
513618
692365
694707
749951
606856
778749
772079
684018
755426
668778
778881
784920
806400
779564
614032
758281
795451
754224
783212
605483
682107
491627
555891
606223
575440
561454
578541
748542
771891
559049
713718
545751
606142
475686
620739
595200
590990
606069
486199
558266
541633
]
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 (794634 , 733417 , 796150 , 555889 , 638557 , 589666 , 799073 , 782217 , 576640 , 782265 , 639683 , 687552 , 555164 , 721488 , 742247 , 765889 , 718040 , 780930 , 630570 , 758802 , 811145 , 475219 , 801465 , 728427 , 729633 , 513618 , 692365 , 694707 , 749951 , 606856 , 778749 , 772079 , 684018 , 755426 , 668778 , 778881 , 784920 , 806400 , 779564 , 614032 , 758281 , 795451 , 754224 , 783212 , 605483 , 682107 , 491627 , 555891 , 606223 , 575440 , 561454 , 578541 , 748542 , 771891 , 559049 , 713718 , 545751 , 606142 , 475686 , 620739 , 595200 , 590990 , 606069 , 486199 , 558266 , 541633 );
Copy
4
2.32 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
475219
475686
486199
491627
513618
541633
545751
555164
555889
555891
558266
559049
561454
575440
576640
578541
589666
590990
595200
605483
606069
606142
606223
606856
614032
620739
630570
638557
639683
668778
682107
684018
687552
692365
694707
713718
718040
721488
728427
729633
733417
742247
748542
749951
754224
755426
758281
758802
765889
771891
778749
778881
779564
780930
782217
782265
783212
784920
794634
795451
796150
799073
801465
806400
811145
]
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 (475219 , 475686 , 486199 , 491627 , 513618 , 541633 , 545751 , 555164 , 555889 , 555891 , 558266 , 559049 , 561454 , 575440 , 576640 , 578541 , 589666 , 590990 , 595200 , 605483 , 606069 , 606142 , 606223 , 606856 , 614032 , 620739 , 630570 , 638557 , 639683 , 668778 , 682107 , 684018 , 687552 , 692365 , 694707 , 713718 , 718040 , 721488 , 728427 , 729633 , 733417 , 742247 , 748542 , 749951 , 754224 , 755426 , 758281 , 758802 , 765889 , 771891 , 778749 , 778881 , 779564 , 780930 , 782217 , 782265 , 783212 , 784920 , 794634 , 795451 , 796150 , 799073 , 801465 , 806400 , 811145 );
Copy
5
95.86 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
475219
475686
486199
491627
513618
541633
545751
555164
555889
555891
558266
559049
561454
575440
576640
578541
589666
590990
595200
605483
606069
606142
606223
606856
614032
620739
630570
638557
639683
668778
682107
684018
687552
692365
694707
713718
718040
721488
728427
729633
733417
742247
748542
749951
754224
755426
758281
758802
765889
771891
778749
778881
779564
780930
782217
782265
783212
784920
794634
795451
796150
799073
801465
806400
811145
]
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 (475219 , 475686 , 486199 , 491627 , 513618 , 541633 , 545751 , 555164 , 555889 , 555891 , 558266 , 559049 , 561454 , 575440 , 576640 , 578541 , 589666 , 590990 , 595200 , 605483 , 606069 , 606142 , 606223 , 606856 , 614032 , 620739 , 630570 , 638557 , 639683 , 668778 , 682107 , 684018 , 687552 , 692365 , 694707 , 713718 , 718040 , 721488 , 728427 , 729633 , 733417 , 742247 , 748542 , 749951 , 754224 , 755426 , 758281 , 758802 , 765889 , 771891 , 778749 , 778881 , 779564 , 780930 , 782217 , 782265 , 783212 , 784920 , 794634 , 795451 , 796150 , 799073 , 801465 , 806400 , 811145 );
Copy