3
16.12 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
601982
621946
637404
560788
660555
670233
598807
619216
599044
599249
626249
586633
606958
625861
523780
486678
656792
657402
548696
593989
605998
610035
605746
441404
609279
527048
634230
521136
581898
588039
476147
406042
408609
479872
485630
545643
554639
624109
622067
520710
556489
647656
561480
564165
479629
517492
521710
525499
623834
613413
511920
574371
662396
591706
617004
446376
481881
486298
554915
599144
514782
551129
652281
615696
564901
527273
616990
529390
610695
599586
559378
598215
541866
]
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 (601982 , 621946 , 637404 , 560788 , 660555 , 670233 , 598807 , 619216 , 599044 , 599249 , 626249 , 586633 , 606958 , 625861 , 523780 , 486678 , 656792 , 657402 , 548696 , 593989 , 605998 , 610035 , 605746 , 441404 , 609279 , 527048 , 634230 , 521136 , 581898 , 588039 , 476147 , 406042 , 408609 , 479872 , 485630 , 545643 , 554639 , 624109 , 622067 , 520710 , 556489 , 647656 , 561480 , 564165 , 479629 , 517492 , 521710 , 525499 , 623834 , 613413 , 511920 , 574371 , 662396 , 591706 , 617004 , 446376 , 481881 , 486298 , 554915 , 599144 , 514782 , 551129 , 652281 , 615696 , 564901 , 527273 , 616990 , 529390 , 610695 , 599586 , 559378 , 598215 , 541866 );
Copy
4
2.38 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
406042
408609
441404
446376
476147
479629
479872
481881
485630
486298
486678
511920
514782
517492
520710
521136
521710
523780
525499
527048
527273
529390
541866
545643
548696
551129
554639
554915
556489
559378
560788
561480
564165
564901
574371
581898
586633
588039
591706
593989
598215
598807
599044
599144
599249
599586
601982
605746
605998
606958
609279
610035
610695
613413
615696
616990
617004
619216
621946
622067
623834
624109
625861
626249
634230
637404
647656
652281
656792
657402
660555
662396
670233
]
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 (406042 , 408609 , 441404 , 446376 , 476147 , 479629 , 479872 , 481881 , 485630 , 486298 , 486678 , 511920 , 514782 , 517492 , 520710 , 521136 , 521710 , 523780 , 525499 , 527048 , 527273 , 529390 , 541866 , 545643 , 548696 , 551129 , 554639 , 554915 , 556489 , 559378 , 560788 , 561480 , 564165 , 564901 , 574371 , 581898 , 586633 , 588039 , 591706 , 593989 , 598215 , 598807 , 599044 , 599144 , 599249 , 599586 , 601982 , 605746 , 605998 , 606958 , 609279 , 610035 , 610695 , 613413 , 615696 , 616990 , 617004 , 619216 , 621946 , 622067 , 623834 , 624109 , 625861 , 626249 , 634230 , 637404 , 647656 , 652281 , 656792 , 657402 , 660555 , 662396 , 670233 );
Copy
5
139.29 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
406042
408609
441404
446376
476147
479629
479872
481881
485630
486298
486678
511920
514782
517492
520710
521136
521710
523780
525499
527048
527273
529390
541866
545643
548696
551129
554639
554915
556489
559378
560788
561480
564165
564901
574371
581898
586633
588039
591706
593989
598215
598807
599044
599144
599249
599586
601982
605746
605998
606958
609279
610035
610695
613413
615696
616990
617004
619216
621946
622067
623834
624109
625861
626249
634230
637404
647656
652281
656792
657402
660555
662396
670233
]
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 (406042 , 408609 , 441404 , 446376 , 476147 , 479629 , 479872 , 481881 , 485630 , 486298 , 486678 , 511920 , 514782 , 517492 , 520710 , 521136 , 521710 , 523780 , 525499 , 527048 , 527273 , 529390 , 541866 , 545643 , 548696 , 551129 , 554639 , 554915 , 556489 , 559378 , 560788 , 561480 , 564165 , 564901 , 574371 , 581898 , 586633 , 588039 , 591706 , 593989 , 598215 , 598807 , 599044 , 599144 , 599249 , 599586 , 601982 , 605746 , 605998 , 606958 , 609279 , 610035 , 610695 , 613413 , 615696 , 616990 , 617004 , 619216 , 621946 , 622067 , 623834 , 624109 , 625861 , 626249 , 634230 , 637404 , 647656 , 652281 , 656792 , 657402 , 660555 , 662396 , 670233 );
Copy