4
9.75 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
819354
634540
817708
828252
735817
828333
619622
817501
715521
621990
801547
723597
413739
616464
760721
746052
494408
484867
606285
603207
775054
750331
761076
756766
419356
709756
710002
569497
605281
761592
766606
817716
813904
520218
523390
528493
583655
583591
715497
591819
736489
402027
547579
594463
606626
591877
727180
446359
494060
523122
528444
497703
494057
583984
582944
606357
388792
581025
588343
631878
591253
520390
560434
602668
587542
494264
401933
509321
583981
484866
]
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 (819354 , 634540 , 817708 , 828252 , 735817 , 828333 , 619622 , 817501 , 715521 , 621990 , 801547 , 723597 , 413739 , 616464 , 760721 , 746052 , 494408 , 484867 , 606285 , 603207 , 775054 , 750331 , 761076 , 756766 , 419356 , 709756 , 710002 , 569497 , 605281 , 761592 , 766606 , 817716 , 813904 , 520218 , 523390 , 528493 , 583655 , 583591 , 715497 , 591819 , 736489 , 402027 , 547579 , 594463 , 606626 , 591877 , 727180 , 446359 , 494060 , 523122 , 528444 , 497703 , 494057 , 583984 , 582944 , 606357 , 388792 , 581025 , 588343 , 631878 , 591253 , 520390 , 560434 , 602668 , 587542 , 494264 , 401933 , 509321 , 583981 , 484866 );
Copy
5
2.85 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
388792
401933
402027
413739
419356
446359
484866
484867
494057
494060
494264
494408
497703
509321
520218
520390
523122
523390
528444
528493
547579
560434
569497
581025
582944
583591
583655
583981
583984
587542
588343
591253
591819
591877
594463
602668
603207
605281
606285
606357
606626
616464
619622
621990
631878
634540
709756
710002
715497
715521
723597
727180
735817
736489
746052
750331
756766
760721
761076
761592
766606
775054
801547
813904
817501
817708
817716
819354
828252
828333
]
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 (388792 , 401933 , 402027 , 413739 , 419356 , 446359 , 484866 , 484867 , 494057 , 494060 , 494264 , 494408 , 497703 , 509321 , 520218 , 520390 , 523122 , 523390 , 528444 , 528493 , 547579 , 560434 , 569497 , 581025 , 582944 , 583591 , 583655 , 583981 , 583984 , 587542 , 588343 , 591253 , 591819 , 591877 , 594463 , 602668 , 603207 , 605281 , 606285 , 606357 , 606626 , 616464 , 619622 , 621990 , 631878 , 634540 , 709756 , 710002 , 715497 , 715521 , 723597 , 727180 , 735817 , 736489 , 746052 , 750331 , 756766 , 760721 , 761076 , 761592 , 766606 , 775054 , 801547 , 813904 , 817501 , 817708 , 817716 , 819354 , 828252 , 828333 );
Copy
6
121.17 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
388792
401933
402027
413739
419356
446359
484866
484867
494057
494060
494264
494408
497703
509321
520218
520390
523122
523390
528444
528493
547579
560434
569497
581025
582944
583591
583655
583981
583984
587542
588343
591253
591819
591877
594463
602668
603207
605281
606285
606357
606626
616464
619622
621990
631878
634540
709756
710002
715497
715521
723597
727180
735817
736489
746052
750331
756766
760721
761076
761592
766606
775054
801547
813904
817501
817708
817716
819354
828252
828333
]
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 (388792 , 401933 , 402027 , 413739 , 419356 , 446359 , 484866 , 484867 , 494057 , 494060 , 494264 , 494408 , 497703 , 509321 , 520218 , 520390 , 523122 , 523390 , 528444 , 528493 , 547579 , 560434 , 569497 , 581025 , 582944 , 583591 , 583655 , 583981 , 583984 , 587542 , 588343 , 591253 , 591819 , 591877 , 594463 , 602668 , 603207 , 605281 , 606285 , 606357 , 606626 , 616464 , 619622 , 621990 , 631878 , 634540 , 709756 , 710002 , 715497 , 715521 , 723597 , 727180 , 735817 , 736489 , 746052 , 750331 , 756766 , 760721 , 761076 , 761592 , 766606 , 775054 , 801547 , 813904 , 817501 , 817708 , 817716 , 819354 , 828252 , 828333 );
Copy