4
8.96 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
790261
517535
584975
561516
584349
759144
663284
811613
747791
400672
545143
662004
616985
758339
630941
605045
605185
796104
798037
358193
510830
532063
704606
598005
605083
802937
384549
479737
500089
509878
650258
675026
742814
614842
514082
407506
570951
554901
561647
605184
812265
507057
607926
318378
442644
457971
493115
465925
577875
798873
796129
464354
389840
467920
499587
604961
498388
556000
663539
527257
605152
602594
609784
441003
648575
483247
524945
]
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 (790261 , 517535 , 584975 , 561516 , 584349 , 759144 , 663284 , 811613 , 747791 , 400672 , 545143 , 662004 , 616985 , 758339 , 630941 , 605045 , 605185 , 796104 , 798037 , 358193 , 510830 , 532063 , 704606 , 598005 , 605083 , 802937 , 384549 , 479737 , 500089 , 509878 , 650258 , 675026 , 742814 , 614842 , 514082 , 407506 , 570951 , 554901 , 561647 , 605184 , 812265 , 507057 , 607926 , 318378 , 442644 , 457971 , 493115 , 465925 , 577875 , 798873 , 796129 , 464354 , 389840 , 467920 , 499587 , 604961 , 498388 , 556000 , 663539 , 527257 , 605152 , 602594 , 609784 , 441003 , 648575 , 483247 , 524945 );
Copy
5
3.14 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
318378
358193
384549
389840
400672
407506
441003
442644
457971
464354
465925
467920
479737
483247
493115
498388
499587
500089
507057
509878
510830
514082
517535
524945
527257
532063
545143
554901
556000
561516
561647
570951
577875
584349
584975
598005
602594
604961
605045
605083
605152
605184
605185
607926
609784
614842
616985
630941
648575
650258
662004
663284
663539
675026
704606
742814
747791
758339
759144
790261
796104
796129
798037
798873
802937
811613
812265
]
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 (318378 , 358193 , 384549 , 389840 , 400672 , 407506 , 441003 , 442644 , 457971 , 464354 , 465925 , 467920 , 479737 , 483247 , 493115 , 498388 , 499587 , 500089 , 507057 , 509878 , 510830 , 514082 , 517535 , 524945 , 527257 , 532063 , 545143 , 554901 , 556000 , 561516 , 561647 , 570951 , 577875 , 584349 , 584975 , 598005 , 602594 , 604961 , 605045 , 605083 , 605152 , 605184 , 605185 , 607926 , 609784 , 614842 , 616985 , 630941 , 648575 , 650258 , 662004 , 663284 , 663539 , 675026 , 704606 , 742814 , 747791 , 758339 , 759144 , 790261 , 796104 , 796129 , 798037 , 798873 , 802937 , 811613 , 812265 );
Copy
6
154.85 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
318378
358193
384549
389840
400672
407506
441003
442644
457971
464354
465925
467920
479737
483247
493115
498388
499587
500089
507057
509878
510830
514082
517535
524945
527257
532063
545143
554901
556000
561516
561647
570951
577875
584349
584975
598005
602594
604961
605045
605083
605152
605184
605185
607926
609784
614842
616985
630941
648575
650258
662004
663284
663539
675026
704606
742814
747791
758339
759144
790261
796104
796129
798037
798873
802937
811613
812265
]
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 (318378 , 358193 , 384549 , 389840 , 400672 , 407506 , 441003 , 442644 , 457971 , 464354 , 465925 , 467920 , 479737 , 483247 , 493115 , 498388 , 499587 , 500089 , 507057 , 509878 , 510830 , 514082 , 517535 , 524945 , 527257 , 532063 , 545143 , 554901 , 556000 , 561516 , 561647 , 570951 , 577875 , 584349 , 584975 , 598005 , 602594 , 604961 , 605045 , 605083 , 605152 , 605184 , 605185 , 607926 , 609784 , 614842 , 616985 , 630941 , 648575 , 650258 , 662004 , 663284 , 663539 , 675026 , 704606 , 742814 , 747791 , 758339 , 759144 , 790261 , 796104 , 796129 , 798037 , 798873 , 802937 , 811613 , 812265 );
Copy