3
10.87 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
826151
458270
790360
724593
481204
816636
789339
747813
766187
802010
547992
780726
790942
761799
799863
754503
622304
787518
788066
798367
789405
748714
776108
777199
776112
777256
799828
764650
778027
789033
793252
737458
810405
435891
790079
502895
563839
547390
563670
424991
529493
487465
552375
564709
624425
588729
483606
483447
579316
564107
739557
491212
622074
508021
528168
569990
591035
588897
462382
557229
469950
573736
621534
742082
825310
726499
743445
780748
726687
542081
801889
791162
796090
686868
462394
616539
]
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 (826151 , 458270 , 790360 , 724593 , 481204 , 816636 , 789339 , 747813 , 766187 , 802010 , 547992 , 780726 , 790942 , 761799 , 799863 , 754503 , 622304 , 787518 , 788066 , 798367 , 789405 , 748714 , 776108 , 777199 , 776112 , 777256 , 799828 , 764650 , 778027 , 789033 , 793252 , 737458 , 810405 , 435891 , 790079 , 502895 , 563839 , 547390 , 563670 , 424991 , 529493 , 487465 , 552375 , 564709 , 624425 , 588729 , 483606 , 483447 , 579316 , 564107 , 739557 , 491212 , 622074 , 508021 , 528168 , 569990 , 591035 , 588897 , 462382 , 557229 , 469950 , 573736 , 621534 , 742082 , 825310 , 726499 , 743445 , 780748 , 726687 , 542081 , 801889 , 791162 , 796090 , 686868 , 462394 , 616539 );
Copy
4
3.17 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
424991
435891
458270
462382
462394
469950
481204
483447
483606
487465
491212
502895
508021
528168
529493
542081
547390
547992
552375
557229
563670
563839
564107
564709
569990
573736
579316
588729
588897
591035
616539
621534
622074
622304
624425
686868
724593
726499
726687
737458
739557
742082
743445
747813
748714
754503
761799
764650
766187
776108
776112
777199
777256
778027
780726
780748
787518
788066
789033
789339
789405
790079
790360
790942
791162
793252
796090
798367
799828
799863
801889
802010
810405
816636
825310
]
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 (424991 , 435891 , 458270 , 462382 , 462394 , 469950 , 481204 , 483447 , 483606 , 487465 , 491212 , 502895 , 508021 , 528168 , 529493 , 542081 , 547390 , 547992 , 552375 , 557229 , 563670 , 563839 , 564107 , 564709 , 569990 , 573736 , 579316 , 588729 , 588897 , 591035 , 616539 , 621534 , 622074 , 622304 , 624425 , 686868 , 724593 , 726499 , 726687 , 737458 , 739557 , 742082 , 743445 , 747813 , 748714 , 754503 , 761799 , 764650 , 766187 , 776108 , 776112 , 777199 , 777256 , 778027 , 780726 , 780748 , 787518 , 788066 , 789033 , 789339 , 789405 , 790079 , 790360 , 790942 , 791162 , 793252 , 796090 , 798367 , 799828 , 799863 , 801889 , 802010 , 810405 , 816636 , 825310 );
Copy
5
89.64 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
424991
435891
458270
462382
462394
469950
481204
483447
483606
487465
491212
502895
508021
528168
529493
542081
547390
547992
552375
557229
563670
563839
564107
564709
569990
573736
579316
588729
588897
591035
616539
621534
622074
622304
624425
686868
724593
726499
726687
737458
739557
742082
743445
747813
748714
754503
761799
764650
766187
776108
776112
777199
777256
778027
780726
780748
787518
788066
789033
789339
789405
790079
790360
790942
791162
793252
796090
798367
799828
799863
801889
802010
810405
816636
825310
]
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 (424991 , 435891 , 458270 , 462382 , 462394 , 469950 , 481204 , 483447 , 483606 , 487465 , 491212 , 502895 , 508021 , 528168 , 529493 , 542081 , 547390 , 547992 , 552375 , 557229 , 563670 , 563839 , 564107 , 564709 , 569990 , 573736 , 579316 , 588729 , 588897 , 591035 , 616539 , 621534 , 622074 , 622304 , 624425 , 686868 , 724593 , 726499 , 726687 , 737458 , 739557 , 742082 , 743445 , 747813 , 748714 , 754503 , 761799 , 764650 , 766187 , 776108 , 776112 , 777199 , 777256 , 778027 , 780726 , 780748 , 787518 , 788066 , 789033 , 789339 , 789405 , 790079 , 790360 , 790942 , 791162 , 793252 , 796090 , 798367 , 799828 , 799863 , 801889 , 802010 , 810405 , 816636 , 825310 );
Copy