3
13.56 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
510972
528635
558411
558886
598190
481361
424261
452324
468916
421580
456607
463024
507771
520815
587056
625320
604545
524800
525828
445649
456812
496518
529143
573486
605762
502817
522759
604743
455147
640837
620266
737015
459513
459535
485061
502779
567757
440824
524142
519582
517326
526951
458657
595665
479950
502229
496526
527710
521132
551480
630919
619007
520954
486302
545832
534678
543389
451410
458467
484740
524520
426495
625239
524348
619527
632304
424190
492169
625441
]
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 (510972 , 528635 , 558411 , 558886 , 598190 , 481361 , 424261 , 452324 , 468916 , 421580 , 456607 , 463024 , 507771 , 520815 , 587056 , 625320 , 604545 , 524800 , 525828 , 445649 , 456812 , 496518 , 529143 , 573486 , 605762 , 502817 , 522759 , 604743 , 455147 , 640837 , 620266 , 737015 , 459513 , 459535 , 485061 , 502779 , 567757 , 440824 , 524142 , 519582 , 517326 , 526951 , 458657 , 595665 , 479950 , 502229 , 496526 , 527710 , 521132 , 551480 , 630919 , 619007 , 520954 , 486302 , 545832 , 534678 , 543389 , 451410 , 458467 , 484740 , 524520 , 426495 , 625239 , 524348 , 619527 , 632304 , 424190 , 492169 , 625441 );
Copy
4
2.73 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
421580
424190
424261
426495
440824
445649
451410
452324
455147
456607
456812
458467
458657
459513
459535
463024
468916
479950
481361
484740
485061
486302
492169
496518
496526
502229
502779
502817
507771
510972
517326
519582
520815
520954
521132
522759
524142
524348
524520
524800
525828
526951
527710
528635
529143
534678
543389
545832
551480
558411
558886
567757
573486
587056
595665
598190
604545
604743
605762
619007
619527
620266
625239
625320
625441
630919
632304
640837
737015
]
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 (421580 , 424190 , 424261 , 426495 , 440824 , 445649 , 451410 , 452324 , 455147 , 456607 , 456812 , 458467 , 458657 , 459513 , 459535 , 463024 , 468916 , 479950 , 481361 , 484740 , 485061 , 486302 , 492169 , 496518 , 496526 , 502229 , 502779 , 502817 , 507771 , 510972 , 517326 , 519582 , 520815 , 520954 , 521132 , 522759 , 524142 , 524348 , 524520 , 524800 , 525828 , 526951 , 527710 , 528635 , 529143 , 534678 , 543389 , 545832 , 551480 , 558411 , 558886 , 567757 , 573486 , 587056 , 595665 , 598190 , 604545 , 604743 , 605762 , 619007 , 619527 , 620266 , 625239 , 625320 , 625441 , 630919 , 632304 , 640837 , 737015 );
Copy
5
88.13 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
421580
424190
424261
426495
440824
445649
451410
452324
455147
456607
456812
458467
458657
459513
459535
463024
468916
479950
481361
484740
485061
486302
492169
496518
496526
502229
502779
502817
507771
510972
517326
519582
520815
520954
521132
522759
524142
524348
524520
524800
525828
526951
527710
528635
529143
534678
543389
545832
551480
558411
558886
567757
573486
587056
595665
598190
604545
604743
605762
619007
619527
620266
625239
625320
625441
630919
632304
640837
737015
]
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 (421580 , 424190 , 424261 , 426495 , 440824 , 445649 , 451410 , 452324 , 455147 , 456607 , 456812 , 458467 , 458657 , 459513 , 459535 , 463024 , 468916 , 479950 , 481361 , 484740 , 485061 , 486302 , 492169 , 496518 , 496526 , 502229 , 502779 , 502817 , 507771 , 510972 , 517326 , 519582 , 520815 , 520954 , 521132 , 522759 , 524142 , 524348 , 524520 , 524800 , 525828 , 526951 , 527710 , 528635 , 529143 , 534678 , 543389 , 545832 , 551480 , 558411 , 558886 , 567757 , 573486 , 587056 , 595665 , 598190 , 604545 , 604743 , 605762 , 619007 , 619527 , 620266 , 625239 , 625320 , 625441 , 630919 , 632304 , 640837 , 737015 );
Copy