3
12.52 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
671349
752719
674916
683010
697207
813272
728716
732640
720187
549174
794829
707440
697196
739778
620473
421806
485254
524138
556482
591957
715417
459368
595601
641387
769465
444262
563551
465288
522449
472850
478547
550517
631326
625121
794162
757206
729181
495122
522413
675492
746101
453978
546914
672887
564575
435356
517392
607023
577132
427137
578803
442218
592580
488224
505842
515056
617346
455171
737922
626015
472454
571696
542784
591338
440662
527152
626478
598915
604050
459944
598334
524859
514916
527005
]
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 (671349 , 752719 , 674916 , 683010 , 697207 , 813272 , 728716 , 732640 , 720187 , 549174 , 794829 , 707440 , 697196 , 739778 , 620473 , 421806 , 485254 , 524138 , 556482 , 591957 , 715417 , 459368 , 595601 , 641387 , 769465 , 444262 , 563551 , 465288 , 522449 , 472850 , 478547 , 550517 , 631326 , 625121 , 794162 , 757206 , 729181 , 495122 , 522413 , 675492 , 746101 , 453978 , 546914 , 672887 , 564575 , 435356 , 517392 , 607023 , 577132 , 427137 , 578803 , 442218 , 592580 , 488224 , 505842 , 515056 , 617346 , 455171 , 737922 , 626015 , 472454 , 571696 , 542784 , 591338 , 440662 , 527152 , 626478 , 598915 , 604050 , 459944 , 598334 , 524859 , 514916 , 527005 );
Copy
4
3.41 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
421806
427137
435356
440662
442218
444262
453978
455171
459368
459944
465288
472454
472850
478547
485254
488224
495122
505842
514916
515056
517392
522413
522449
524138
524859
527005
527152
542784
546914
549174
550517
556482
563551
564575
571696
577132
578803
591338
591957
592580
595601
598334
598915
604050
607023
617346
620473
625121
626015
626478
631326
641387
671349
672887
674916
675492
683010
697196
697207
707440
715417
720187
728716
729181
732640
737922
739778
746101
752719
757206
769465
794162
794829
813272
]
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 (421806 , 427137 , 435356 , 440662 , 442218 , 444262 , 453978 , 455171 , 459368 , 459944 , 465288 , 472454 , 472850 , 478547 , 485254 , 488224 , 495122 , 505842 , 514916 , 515056 , 517392 , 522413 , 522449 , 524138 , 524859 , 527005 , 527152 , 542784 , 546914 , 549174 , 550517 , 556482 , 563551 , 564575 , 571696 , 577132 , 578803 , 591338 , 591957 , 592580 , 595601 , 598334 , 598915 , 604050 , 607023 , 617346 , 620473 , 625121 , 626015 , 626478 , 631326 , 641387 , 671349 , 672887 , 674916 , 675492 , 683010 , 697196 , 697207 , 707440 , 715417 , 720187 , 728716 , 729181 , 732640 , 737922 , 739778 , 746101 , 752719 , 757206 , 769465 , 794162 , 794829 , 813272 );
Copy
5
112.68 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
421806
427137
435356
440662
442218
444262
453978
455171
459368
459944
465288
472454
472850
478547
485254
488224
495122
505842
514916
515056
517392
522413
522449
524138
524859
527005
527152
542784
546914
549174
550517
556482
563551
564575
571696
577132
578803
591338
591957
592580
595601
598334
598915
604050
607023
617346
620473
625121
626015
626478
631326
641387
671349
672887
674916
675492
683010
697196
697207
707440
715417
720187
728716
729181
732640
737922
739778
746101
752719
757206
769465
794162
794829
813272
]
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 (421806 , 427137 , 435356 , 440662 , 442218 , 444262 , 453978 , 455171 , 459368 , 459944 , 465288 , 472454 , 472850 , 478547 , 485254 , 488224 , 495122 , 505842 , 514916 , 515056 , 517392 , 522413 , 522449 , 524138 , 524859 , 527005 , 527152 , 542784 , 546914 , 549174 , 550517 , 556482 , 563551 , 564575 , 571696 , 577132 , 578803 , 591338 , 591957 , 592580 , 595601 , 598334 , 598915 , 604050 , 607023 , 617346 , 620473 , 625121 , 626015 , 626478 , 631326 , 641387 , 671349 , 672887 , 674916 , 675492 , 683010 , 697196 , 697207 , 707440 , 715417 , 720187 , 728716 , 729181 , 732640 , 737922 , 739778 , 746101 , 752719 , 757206 , 769465 , 794162 , 794829 , 813272 );
Copy