3
56.90 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
740200
745315
805109
530555
529633
615085
749833
385815
623956
615570
745958
545068
537634
705074
674894
609708
753610
637183
818832
795780
787102
724300
668467
650829
737508
748396
754875
656876
716188
620185
753933
745319
588480
531424
705196
721883
417839
153249
461690
486197
560903
713445
674516
571479
731080
441956
506844
508592
473344
491172
581566
622884
790819
457649
500508
514105
488207
530731
516826
555979
418968
487800
577670
556396
585797
621347
490744
714779
477355
]
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 (740200 , 745315 , 805109 , 530555 , 529633 , 615085 , 749833 , 385815 , 623956 , 615570 , 745958 , 545068 , 537634 , 705074 , 674894 , 609708 , 753610 , 637183 , 818832 , 795780 , 787102 , 724300 , 668467 , 650829 , 737508 , 748396 , 754875 , 656876 , 716188 , 620185 , 753933 , 745319 , 588480 , 531424 , 705196 , 721883 , 417839 , 153249 , 461690 , 486197 , 560903 , 713445 , 674516 , 571479 , 731080 , 441956 , 506844 , 508592 , 473344 , 491172 , 581566 , 622884 , 790819 , 457649 , 500508 , 514105 , 488207 , 530731 , 516826 , 555979 , 418968 , 487800 , 577670 , 556396 , 585797 , 621347 , 490744 , 714779 , 477355 );
Copy
4
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
153249
385815
417839
418968
441956
457649
461690
473344
477355
486197
487800
488207
490744
491172
500508
506844
508592
514105
516826
529633
530555
530731
531424
537634
545068
555979
556396
560903
571479
577670
581566
585797
588480
609708
615085
615570
620185
621347
622884
623956
637183
650829
656876
668467
674516
674894
705074
705196
713445
714779
716188
721883
724300
731080
737508
740200
745315
745319
745958
748396
749833
753610
753933
754875
787102
790819
795780
805109
818832
]
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 (153249 , 385815 , 417839 , 418968 , 441956 , 457649 , 461690 , 473344 , 477355 , 486197 , 487800 , 488207 , 490744 , 491172 , 500508 , 506844 , 508592 , 514105 , 516826 , 529633 , 530555 , 530731 , 531424 , 537634 , 545068 , 555979 , 556396 , 560903 , 571479 , 577670 , 581566 , 585797 , 588480 , 609708 , 615085 , 615570 , 620185 , 621347 , 622884 , 623956 , 637183 , 650829 , 656876 , 668467 , 674516 , 674894 , 705074 , 705196 , 713445 , 714779 , 716188 , 721883 , 724300 , 731080 , 737508 , 740200 , 745315 , 745319 , 745958 , 748396 , 749833 , 753610 , 753933 , 754875 , 787102 , 790819 , 795780 , 805109 , 818832 );
Copy
5
101.09 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
153249
385815
417839
418968
441956
457649
461690
473344
477355
486197
487800
488207
490744
491172
500508
506844
508592
514105
516826
529633
530555
530731
531424
537634
545068
555979
556396
560903
571479
577670
581566
585797
588480
609708
615085
615570
620185
621347
622884
623956
637183
650829
656876
668467
674516
674894
705074
705196
713445
714779
716188
721883
724300
731080
737508
740200
745315
745319
745958
748396
749833
753610
753933
754875
787102
790819
795780
805109
818832
]
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 (153249 , 385815 , 417839 , 418968 , 441956 , 457649 , 461690 , 473344 , 477355 , 486197 , 487800 , 488207 , 490744 , 491172 , 500508 , 506844 , 508592 , 514105 , 516826 , 529633 , 530555 , 530731 , 531424 , 537634 , 545068 , 555979 , 556396 , 560903 , 571479 , 577670 , 581566 , 585797 , 588480 , 609708 , 615085 , 615570 , 620185 , 621347 , 622884 , 623956 , 637183 , 650829 , 656876 , 668467 , 674516 , 674894 , 705074 , 705196 , 713445 , 714779 , 716188 , 721883 , 724300 , 731080 , 737508 , 740200 , 745315 , 745319 , 745958 , 748396 , 749833 , 753610 , 753933 , 754875 , 787102 , 790819 , 795780 , 805109 , 818832 );
Copy