3
12.20 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
554210
601848
403588
393055
421835
422141
493300
813408
769310
788860
770882
485073
532729
545637
718788
682348
464240
421897
440956
549830
429441
465324
601444
796881
470585
528143
491943
505022
421895
463305
464327
440780
530863
606576
516320
443085
428124
421892
524245
418519
454467
484821
447095
462840
421908
439577
421878
473950
502326
690803
439586
517833
544202
426987
643933
481910
461061
586591
421234
451866
516227
751565
645920
542914
400497
]
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 (554210 , 601848 , 403588 , 393055 , 421835 , 422141 , 493300 , 813408 , 769310 , 788860 , 770882 , 485073 , 532729 , 545637 , 718788 , 682348 , 464240 , 421897 , 440956 , 549830 , 429441 , 465324 , 601444 , 796881 , 470585 , 528143 , 491943 , 505022 , 421895 , 463305 , 464327 , 440780 , 530863 , 606576 , 516320 , 443085 , 428124 , 421892 , 524245 , 418519 , 454467 , 484821 , 447095 , 462840 , 421908 , 439577 , 421878 , 473950 , 502326 , 690803 , 439586 , 517833 , 544202 , 426987 , 643933 , 481910 , 461061 , 586591 , 421234 , 451866 , 516227 , 751565 , 645920 , 542914 , 400497 );
Copy
4
2.53 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
393055
400497
403588
418519
421234
421835
421878
421892
421895
421897
421908
422141
426987
428124
429441
439577
439586
440780
440956
443085
447095
451866
454467
461061
462840
463305
464240
464327
465324
470585
473950
481910
484821
485073
491943
493300
502326
505022
516227
516320
517833
524245
528143
530863
532729
542914
544202
545637
549830
554210
586591
601444
601848
606576
643933
645920
682348
690803
718788
751565
769310
770882
788860
796881
813408
]
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 (393055 , 400497 , 403588 , 418519 , 421234 , 421835 , 421878 , 421892 , 421895 , 421897 , 421908 , 422141 , 426987 , 428124 , 429441 , 439577 , 439586 , 440780 , 440956 , 443085 , 447095 , 451866 , 454467 , 461061 , 462840 , 463305 , 464240 , 464327 , 465324 , 470585 , 473950 , 481910 , 484821 , 485073 , 491943 , 493300 , 502326 , 505022 , 516227 , 516320 , 517833 , 524245 , 528143 , 530863 , 532729 , 542914 , 544202 , 545637 , 549830 , 554210 , 586591 , 601444 , 601848 , 606576 , 643933 , 645920 , 682348 , 690803 , 718788 , 751565 , 769310 , 770882 , 788860 , 796881 , 813408 );
Copy
5
71.80 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
393055
400497
403588
418519
421234
421835
421878
421892
421895
421897
421908
422141
426987
428124
429441
439577
439586
440780
440956
443085
447095
451866
454467
461061
462840
463305
464240
464327
465324
470585
473950
481910
484821
485073
491943
493300
502326
505022
516227
516320
517833
524245
528143
530863
532729
542914
544202
545637
549830
554210
586591
601444
601848
606576
643933
645920
682348
690803
718788
751565
769310
770882
788860
796881
813408
]
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 (393055 , 400497 , 403588 , 418519 , 421234 , 421835 , 421878 , 421892 , 421895 , 421897 , 421908 , 422141 , 426987 , 428124 , 429441 , 439577 , 439586 , 440780 , 440956 , 443085 , 447095 , 451866 , 454467 , 461061 , 462840 , 463305 , 464240 , 464327 , 465324 , 470585 , 473950 , 481910 , 484821 , 485073 , 491943 , 493300 , 502326 , 505022 , 516227 , 516320 , 517833 , 524245 , 528143 , 530863 , 532729 , 542914 , 544202 , 545637 , 549830 , 554210 , 586591 , 601444 , 601848 , 606576 , 643933 , 645920 , 682348 , 690803 , 718788 , 751565 , 769310 , 770882 , 788860 , 796881 , 813408 );
Copy