3
8.52 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
826096
707346
724210
741061
584185
605786
796004
53601
624543
639078
602788
810196
729859
735002
793947
403259
701188
722276
801740
801242
712185
746344
733232
629389
776007
478079
539790
710449
775359
788827
731020
709896
712874
814272
459894
555905
580886
697196
593396
758335
772210
736563
739089
759690
626280
778704
779938
489271
529233
560278
573165
587260
585936
594219
730994
800799
497811
796642
481167
525398
462537
450025
572328
718274
605762
459120
765545
587876
560266
523809
]
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 (826096 , 707346 , 724210 , 741061 , 584185 , 605786 , 796004 , 53601 , 624543 , 639078 , 602788 , 810196 , 729859 , 735002 , 793947 , 403259 , 701188 , 722276 , 801740 , 801242 , 712185 , 746344 , 733232 , 629389 , 776007 , 478079 , 539790 , 710449 , 775359 , 788827 , 731020 , 709896 , 712874 , 814272 , 459894 , 555905 , 580886 , 697196 , 593396 , 758335 , 772210 , 736563 , 739089 , 759690 , 626280 , 778704 , 779938 , 489271 , 529233 , 560278 , 573165 , 587260 , 585936 , 594219 , 730994 , 800799 , 497811 , 796642 , 481167 , 525398 , 462537 , 450025 , 572328 , 718274 , 605762 , 459120 , 765545 , 587876 , 560266 , 523809 );
Copy
4
2.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
53601
403259
450025
459120
459894
462537
478079
481167
489271
497811
523809
525398
529233
539790
555905
560266
560278
572328
573165
580886
584185
585936
587260
587876
593396
594219
602788
605762
605786
624543
626280
629389
639078
697196
701188
707346
709896
710449
712185
712874
718274
722276
724210
729859
730994
731020
733232
735002
736563
739089
741061
746344
758335
759690
765545
772210
775359
776007
778704
779938
788827
793947
796004
800799
801242
801740
810196
814272
826096
]
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 (53601 , 403259 , 450025 , 459120 , 459894 , 462537 , 478079 , 481167 , 489271 , 497811 , 523809 , 525398 , 529233 , 539790 , 555905 , 560266 , 560278 , 572328 , 573165 , 580886 , 584185 , 585936 , 587260 , 587876 , 593396 , 594219 , 602788 , 605762 , 605786 , 624543 , 626280 , 629389 , 639078 , 697196 , 701188 , 707346 , 709896 , 710449 , 712185 , 712874 , 718274 , 722276 , 724210 , 729859 , 730994 , 731020 , 733232 , 735002 , 736563 , 739089 , 741061 , 746344 , 758335 , 759690 , 765545 , 772210 , 775359 , 776007 , 778704 , 779938 , 788827 , 793947 , 796004 , 800799 , 801242 , 801740 , 810196 , 814272 , 826096 );
Copy
5
77.38 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
53601
403259
450025
459120
459894
462537
478079
481167
489271
497811
523809
525398
529233
539790
555905
560266
560278
572328
573165
580886
584185
585936
587260
587876
593396
594219
602788
605762
605786
624543
626280
629389
639078
697196
701188
707346
709896
710449
712185
712874
718274
722276
724210
729859
730994
731020
733232
735002
736563
739089
741061
746344
758335
759690
765545
772210
775359
776007
778704
779938
788827
793947
796004
800799
801242
801740
810196
814272
826096
]
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 (53601 , 403259 , 450025 , 459120 , 459894 , 462537 , 478079 , 481167 , 489271 , 497811 , 523809 , 525398 , 529233 , 539790 , 555905 , 560266 , 560278 , 572328 , 573165 , 580886 , 584185 , 585936 , 587260 , 587876 , 593396 , 594219 , 602788 , 605762 , 605786 , 624543 , 626280 , 629389 , 639078 , 697196 , 701188 , 707346 , 709896 , 710449 , 712185 , 712874 , 718274 , 722276 , 724210 , 729859 , 730994 , 731020 , 733232 , 735002 , 736563 , 739089 , 741061 , 746344 , 758335 , 759690 , 765545 , 772210 , 775359 , 776007 , 778704 , 779938 , 788827 , 793947 , 796004 , 800799 , 801242 , 801740 , 810196 , 814272 , 826096 );
Copy