3
19.74 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
487093
397208
382724
475220
488308
491790
775972
712825
476856
462570
462084
518873
466979
386205
474120
462076
712821
447705
733172
759658
398231
712812
550437
743406
530360
794656
746006
712826
712828
580460
577662
712823
712837
664828
549239
617722
667290
647617
810775
517073
712820
556066
712809
625110
478672
712827
515724
593529
624793
667888
748142
517048
699056
491022
504386
465525
517067
467053
598653
305626
712035
715662
712822
604048
515262
699023
667288
699804
562596
799366
530729
594920
739557
663956
]
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 (487093 , 397208 , 382724 , 475220 , 488308 , 491790 , 775972 , 712825 , 476856 , 462570 , 462084 , 518873 , 466979 , 386205 , 474120 , 462076 , 712821 , 447705 , 733172 , 759658 , 398231 , 712812 , 550437 , 743406 , 530360 , 794656 , 746006 , 712826 , 712828 , 580460 , 577662 , 712823 , 712837 , 664828 , 549239 , 617722 , 667290 , 647617 , 810775 , 517073 , 712820 , 556066 , 712809 , 625110 , 478672 , 712827 , 515724 , 593529 , 624793 , 667888 , 748142 , 517048 , 699056 , 491022 , 504386 , 465525 , 517067 , 467053 , 598653 , 305626 , 712035 , 715662 , 712822 , 604048 , 515262 , 699023 , 667288 , 699804 , 562596 , 799366 , 530729 , 594920 , 739557 , 663956 );
Copy
4
3.72 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
305626
382724
386205
397208
398231
447705
462076
462084
462570
465525
466979
467053
474120
475220
476856
478672
487093
488308
491022
491790
504386
515262
515724
517048
517067
517073
518873
530360
530729
549239
550437
556066
562596
577662
580460
593529
594920
598653
604048
617722
624793
625110
647617
663956
664828
667288
667290
667888
699023
699056
699804
712035
712809
712812
712820
712821
712822
712823
712825
712826
712827
712828
712837
715662
733172
739557
743406
746006
748142
759658
775972
794656
799366
810775
]
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 (305626 , 382724 , 386205 , 397208 , 398231 , 447705 , 462076 , 462084 , 462570 , 465525 , 466979 , 467053 , 474120 , 475220 , 476856 , 478672 , 487093 , 488308 , 491022 , 491790 , 504386 , 515262 , 515724 , 517048 , 517067 , 517073 , 518873 , 530360 , 530729 , 549239 , 550437 , 556066 , 562596 , 577662 , 580460 , 593529 , 594920 , 598653 , 604048 , 617722 , 624793 , 625110 , 647617 , 663956 , 664828 , 667288 , 667290 , 667888 , 699023 , 699056 , 699804 , 712035 , 712809 , 712812 , 712820 , 712821 , 712822 , 712823 , 712825 , 712826 , 712827 , 712828 , 712837 , 715662 , 733172 , 739557 , 743406 , 746006 , 748142 , 759658 , 775972 , 794656 , 799366 , 810775 );
Copy
5
86.66 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
305626
382724
386205
397208
398231
447705
462076
462084
462570
465525
466979
467053
474120
475220
476856
478672
487093
488308
491022
491790
504386
515262
515724
517048
517067
517073
518873
530360
530729
549239
550437
556066
562596
577662
580460
593529
594920
598653
604048
617722
624793
625110
647617
663956
664828
667288
667290
667888
699023
699056
699804
712035
712809
712812
712820
712821
712822
712823
712825
712826
712827
712828
712837
715662
733172
739557
743406
746006
748142
759658
775972
794656
799366
810775
]
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 (305626 , 382724 , 386205 , 397208 , 398231 , 447705 , 462076 , 462084 , 462570 , 465525 , 466979 , 467053 , 474120 , 475220 , 476856 , 478672 , 487093 , 488308 , 491022 , 491790 , 504386 , 515262 , 515724 , 517048 , 517067 , 517073 , 518873 , 530360 , 530729 , 549239 , 550437 , 556066 , 562596 , 577662 , 580460 , 593529 , 594920 , 598653 , 604048 , 617722 , 624793 , 625110 , 647617 , 663956 , 664828 , 667288 , 667290 , 667888 , 699023 , 699056 , 699804 , 712035 , 712809 , 712812 , 712820 , 712821 , 712822 , 712823 , 712825 , 712826 , 712827 , 712828 , 712837 , 715662 , 733172 , 739557 , 743406 , 746006 , 748142 , 759658 , 775972 , 794656 , 799366 , 810775 );
Copy