3
10.31 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
395381
815286
629823
811646
424795
441876
569067
616793
612821
803606
757512
787867
438683
459213
444280
625440
500974
419272
448000
512220
536264
482237
405988
472547
588656
472625
447008
519063
587545
600471
468139
463919
523205
468071
556485
424315
726935
632064
827081
801333
785263
804413
794438
768722
792988
513803
526069
589031
468021
500943
555390
613172
619167
803672
478885
398900
578039
396691
468037
692743
468135
495421
516884
424787
513182
582631
634230
]
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 (395381 , 815286 , 629823 , 811646 , 424795 , 441876 , 569067 , 616793 , 612821 , 803606 , 757512 , 787867 , 438683 , 459213 , 444280 , 625440 , 500974 , 419272 , 448000 , 512220 , 536264 , 482237 , 405988 , 472547 , 588656 , 472625 , 447008 , 519063 , 587545 , 600471 , 468139 , 463919 , 523205 , 468071 , 556485 , 424315 , 726935 , 632064 , 827081 , 801333 , 785263 , 804413 , 794438 , 768722 , 792988 , 513803 , 526069 , 589031 , 468021 , 500943 , 555390 , 613172 , 619167 , 803672 , 478885 , 398900 , 578039 , 396691 , 468037 , 692743 , 468135 , 495421 , 516884 , 424787 , 513182 , 582631 , 634230 );
Copy
4
2.36 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
395381
396691
398900
405988
419272
424315
424787
424795
438683
441876
444280
447008
448000
459213
463919
468021
468037
468071
468135
468139
472547
472625
478885
482237
495421
500943
500974
512220
513182
513803
516884
519063
523205
526069
536264
555390
556485
569067
578039
582631
587545
588656
589031
600471
612821
613172
616793
619167
625440
629823
632064
634230
692743
726935
757512
768722
785263
787867
792988
794438
801333
803606
803672
804413
811646
815286
827081
]
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 (395381 , 396691 , 398900 , 405988 , 419272 , 424315 , 424787 , 424795 , 438683 , 441876 , 444280 , 447008 , 448000 , 459213 , 463919 , 468021 , 468037 , 468071 , 468135 , 468139 , 472547 , 472625 , 478885 , 482237 , 495421 , 500943 , 500974 , 512220 , 513182 , 513803 , 516884 , 519063 , 523205 , 526069 , 536264 , 555390 , 556485 , 569067 , 578039 , 582631 , 587545 , 588656 , 589031 , 600471 , 612821 , 613172 , 616793 , 619167 , 625440 , 629823 , 632064 , 634230 , 692743 , 726935 , 757512 , 768722 , 785263 , 787867 , 792988 , 794438 , 801333 , 803606 , 803672 , 804413 , 811646 , 815286 , 827081 );
Copy
5
75.26 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
395381
396691
398900
405988
419272
424315
424787
424795
438683
441876
444280
447008
448000
459213
463919
468021
468037
468071
468135
468139
472547
472625
478885
482237
495421
500943
500974
512220
513182
513803
516884
519063
523205
526069
536264
555390
556485
569067
578039
582631
587545
588656
589031
600471
612821
613172
616793
619167
625440
629823
632064
634230
692743
726935
757512
768722
785263
787867
792988
794438
801333
803606
803672
804413
811646
815286
827081
]
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 (395381 , 396691 , 398900 , 405988 , 419272 , 424315 , 424787 , 424795 , 438683 , 441876 , 444280 , 447008 , 448000 , 459213 , 463919 , 468021 , 468037 , 468071 , 468135 , 468139 , 472547 , 472625 , 478885 , 482237 , 495421 , 500943 , 500974 , 512220 , 513182 , 513803 , 516884 , 519063 , 523205 , 526069 , 536264 , 555390 , 556485 , 569067 , 578039 , 582631 , 587545 , 588656 , 589031 , 600471 , 612821 , 613172 , 616793 , 619167 , 625440 , 629823 , 632064 , 634230 , 692743 , 726935 , 757512 , 768722 , 785263 , 787867 , 792988 , 794438 , 801333 , 803606 , 803672 , 804413 , 811646 , 815286 , 827081 );
Copy