3
14.72 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
404059
423022
475613
463927
476962
473955
475588
489548
494536
523442
515222
523138
540932
503962
544309
681310
623820
622401
604069
598828
428724
524322
525873
519695
540908
399876
462470
558122
558138
571847
551915
581349
597941
597028
603285
623198
472441
473182
484628
520736
487858
423205
578397
606822
600069
562879
561997
586886
603488
624173
624247
624842
641127
494037
545614
575197
623199
590796
609280
618874
541650
485630
558191
560188
602945
596839
491802
]
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 (404059 , 423022 , 475613 , 463927 , 476962 , 473955 , 475588 , 489548 , 494536 , 523442 , 515222 , 523138 , 540932 , 503962 , 544309 , 681310 , 623820 , 622401 , 604069 , 598828 , 428724 , 524322 , 525873 , 519695 , 540908 , 399876 , 462470 , 558122 , 558138 , 571847 , 551915 , 581349 , 597941 , 597028 , 603285 , 623198 , 472441 , 473182 , 484628 , 520736 , 487858 , 423205 , 578397 , 606822 , 600069 , 562879 , 561997 , 586886 , 603488 , 624173 , 624247 , 624842 , 641127 , 494037 , 545614 , 575197 , 623199 , 590796 , 609280 , 618874 , 541650 , 485630 , 558191 , 560188 , 602945 , 596839 , 491802 );
Copy
4
3.45 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
399876
404059
423022
423205
428724
462470
463927
472441
473182
473955
475588
475613
476962
484628
485630
487858
489548
491802
494037
494536
503962
515222
519695
520736
523138
523442
524322
525873
540908
540932
541650
544309
545614
551915
558122
558138
558191
560188
561997
562879
571847
575197
578397
581349
586886
590796
596839
597028
597941
598828
600069
602945
603285
603488
604069
606822
609280
618874
622401
623198
623199
623820
624173
624247
624842
641127
681310
]
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 (399876 , 404059 , 423022 , 423205 , 428724 , 462470 , 463927 , 472441 , 473182 , 473955 , 475588 , 475613 , 476962 , 484628 , 485630 , 487858 , 489548 , 491802 , 494037 , 494536 , 503962 , 515222 , 519695 , 520736 , 523138 , 523442 , 524322 , 525873 , 540908 , 540932 , 541650 , 544309 , 545614 , 551915 , 558122 , 558138 , 558191 , 560188 , 561997 , 562879 , 571847 , 575197 , 578397 , 581349 , 586886 , 590796 , 596839 , 597028 , 597941 , 598828 , 600069 , 602945 , 603285 , 603488 , 604069 , 606822 , 609280 , 618874 , 622401 , 623198 , 623199 , 623820 , 624173 , 624247 , 624842 , 641127 , 681310 );
Copy
5
100.71 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
399876
404059
423022
423205
428724
462470
463927
472441
473182
473955
475588
475613
476962
484628
485630
487858
489548
491802
494037
494536
503962
515222
519695
520736
523138
523442
524322
525873
540908
540932
541650
544309
545614
551915
558122
558138
558191
560188
561997
562879
571847
575197
578397
581349
586886
590796
596839
597028
597941
598828
600069
602945
603285
603488
604069
606822
609280
618874
622401
623198
623199
623820
624173
624247
624842
641127
681310
]
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 (399876 , 404059 , 423022 , 423205 , 428724 , 462470 , 463927 , 472441 , 473182 , 473955 , 475588 , 475613 , 476962 , 484628 , 485630 , 487858 , 489548 , 491802 , 494037 , 494536 , 503962 , 515222 , 519695 , 520736 , 523138 , 523442 , 524322 , 525873 , 540908 , 540932 , 541650 , 544309 , 545614 , 551915 , 558122 , 558138 , 558191 , 560188 , 561997 , 562879 , 571847 , 575197 , 578397 , 581349 , 586886 , 590796 , 596839 , 597028 , 597941 , 598828 , 600069 , 602945 , 603285 , 603488 , 604069 , 606822 , 609280 , 618874 , 622401 , 623198 , 623199 , 623820 , 624173 , 624247 , 624842 , 641127 , 681310 );
Copy