4
14.78 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
814901
507651
536633
562000
623264
666586
666527
775860
765552
454954
681637
609906
558991
449097
408262
674988
505132
533007
678117
448714
710246
559959
601698
637001
593292
572026
678095
634134
587185
468733
377241
666906
674983
611558
654422
562894
675010
529288
521123
578454
512804
672372
513951
522562
515377
601324
590866
621330
515982
601388
594231
524773
463757
569139
517881
567673
565186
397481
454264
416292
582282
546110
485374
568045
559233
604865
624742
467972
606577
494492
]
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 (814901 , 507651 , 536633 , 562000 , 623264 , 666586 , 666527 , 775860 , 765552 , 454954 , 681637 , 609906 , 558991 , 449097 , 408262 , 674988 , 505132 , 533007 , 678117 , 448714 , 710246 , 559959 , 601698 , 637001 , 593292 , 572026 , 678095 , 634134 , 587185 , 468733 , 377241 , 666906 , 674983 , 611558 , 654422 , 562894 , 675010 , 529288 , 521123 , 578454 , 512804 , 672372 , 513951 , 522562 , 515377 , 601324 , 590866 , 621330 , 515982 , 601388 , 594231 , 524773 , 463757 , 569139 , 517881 , 567673 , 565186 , 397481 , 454264 , 416292 , 582282 , 546110 , 485374 , 568045 , 559233 , 604865 , 624742 , 467972 , 606577 , 494492 );
Copy
5
2.48 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
377241
397481
408262
416292
448714
449097
454264
454954
463757
467972
468733
485374
494492
505132
507651
512804
513951
515377
515982
517881
521123
522562
524773
529288
533007
536633
546110
558991
559233
559959
562000
562894
565186
567673
568045
569139
572026
578454
582282
587185
590866
593292
594231
601324
601388
601698
604865
606577
609906
611558
621330
623264
624742
634134
637001
654422
666527
666586
666906
672372
674983
674988
675010
678095
678117
681637
710246
765552
775860
814901
]
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 (377241 , 397481 , 408262 , 416292 , 448714 , 449097 , 454264 , 454954 , 463757 , 467972 , 468733 , 485374 , 494492 , 505132 , 507651 , 512804 , 513951 , 515377 , 515982 , 517881 , 521123 , 522562 , 524773 , 529288 , 533007 , 536633 , 546110 , 558991 , 559233 , 559959 , 562000 , 562894 , 565186 , 567673 , 568045 , 569139 , 572026 , 578454 , 582282 , 587185 , 590866 , 593292 , 594231 , 601324 , 601388 , 601698 , 604865 , 606577 , 609906 , 611558 , 621330 , 623264 , 624742 , 634134 , 637001 , 654422 , 666527 , 666586 , 666906 , 672372 , 674983 , 674988 , 675010 , 678095 , 678117 , 681637 , 710246 , 765552 , 775860 , 814901 );
Copy
6
84.23 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
377241
397481
408262
416292
448714
449097
454264
454954
463757
467972
468733
485374
494492
505132
507651
512804
513951
515377
515982
517881
521123
522562
524773
529288
533007
536633
546110
558991
559233
559959
562000
562894
565186
567673
568045
569139
572026
578454
582282
587185
590866
593292
594231
601324
601388
601698
604865
606577
609906
611558
621330
623264
624742
634134
637001
654422
666527
666586
666906
672372
674983
674988
675010
678095
678117
681637
710246
765552
775860
814901
]
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 (377241 , 397481 , 408262 , 416292 , 448714 , 449097 , 454264 , 454954 , 463757 , 467972 , 468733 , 485374 , 494492 , 505132 , 507651 , 512804 , 513951 , 515377 , 515982 , 517881 , 521123 , 522562 , 524773 , 529288 , 533007 , 536633 , 546110 , 558991 , 559233 , 559959 , 562000 , 562894 , 565186 , 567673 , 568045 , 569139 , 572026 , 578454 , 582282 , 587185 , 590866 , 593292 , 594231 , 601324 , 601388 , 601698 , 604865 , 606577 , 609906 , 611558 , 621330 , 623264 , 624742 , 634134 , 637001 , 654422 , 666527 , 666586 , 666906 , 672372 , 674983 , 674988 , 675010 , 678095 , 678117 , 681637 , 710246 , 765552 , 775860 , 814901 );
Copy