3
12.68 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
397186
644682
823910
716883
409901
469370
72666
564180
716797
752799
412378
716765
411814
681304
505623
411863
230243
450161
475873
484217
450797
72730
4048
799250
72782
797008
73322
337628
389565
669680
735027
411973
72393
411773
411776
358272
387198
459239
407973
404684
453133
800708
394642
396571
390728
385358
187171
337627
389848
390345
411840
411914
813765
480302
403650
454029
466133
471961
520679
562907
460738
401203
640723
400857
389921
599962
534845
]
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 (397186 , 644682 , 823910 , 716883 , 409901 , 469370 , 72666 , 564180 , 716797 , 752799 , 412378 , 716765 , 411814 , 681304 , 505623 , 411863 , 230243 , 450161 , 475873 , 484217 , 450797 , 72730 , 4048 , 799250 , 72782 , 797008 , 73322 , 337628 , 389565 , 669680 , 735027 , 411973 , 72393 , 411773 , 411776 , 358272 , 387198 , 459239 , 407973 , 404684 , 453133 , 800708 , 394642 , 396571 , 390728 , 385358 , 187171 , 337627 , 389848 , 390345 , 411840 , 411914 , 813765 , 480302 , 403650 , 454029 , 466133 , 471961 , 520679 , 562907 , 460738 , 401203 , 640723 , 400857 , 389921 , 599962 , 534845 );
Copy
4
3.33 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
4048
72393
72666
72730
72782
73322
187171
230243
337627
337628
358272
385358
387198
389565
389848
389921
390345
390728
394642
396571
397186
400857
401203
403650
404684
407973
409901
411773
411776
411814
411840
411863
411914
411973
412378
450161
450797
453133
454029
459239
460738
466133
469370
471961
475873
480302
484217
505623
520679
534845
562907
564180
599962
640723
644682
669680
681304
716765
716797
716883
735027
752799
797008
799250
800708
813765
823910
]
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 (4048 , 72393 , 72666 , 72730 , 72782 , 73322 , 187171 , 230243 , 337627 , 337628 , 358272 , 385358 , 387198 , 389565 , 389848 , 389921 , 390345 , 390728 , 394642 , 396571 , 397186 , 400857 , 401203 , 403650 , 404684 , 407973 , 409901 , 411773 , 411776 , 411814 , 411840 , 411863 , 411914 , 411973 , 412378 , 450161 , 450797 , 453133 , 454029 , 459239 , 460738 , 466133 , 469370 , 471961 , 475873 , 480302 , 484217 , 505623 , 520679 , 534845 , 562907 , 564180 , 599962 , 640723 , 644682 , 669680 , 681304 , 716765 , 716797 , 716883 , 735027 , 752799 , 797008 , 799250 , 800708 , 813765 , 823910 );
Copy
5
93.74 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
4048
72393
72666
72730
72782
73322
187171
230243
337627
337628
358272
385358
387198
389565
389848
389921
390345
390728
394642
396571
397186
400857
401203
403650
404684
407973
409901
411773
411776
411814
411840
411863
411914
411973
412378
450161
450797
453133
454029
459239
460738
466133
469370
471961
475873
480302
484217
505623
520679
534845
562907
564180
599962
640723
644682
669680
681304
716765
716797
716883
735027
752799
797008
799250
800708
813765
823910
]
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 (4048 , 72393 , 72666 , 72730 , 72782 , 73322 , 187171 , 230243 , 337627 , 337628 , 358272 , 385358 , 387198 , 389565 , 389848 , 389921 , 390345 , 390728 , 394642 , 396571 , 397186 , 400857 , 401203 , 403650 , 404684 , 407973 , 409901 , 411773 , 411776 , 411814 , 411840 , 411863 , 411914 , 411973 , 412378 , 450161 , 450797 , 453133 , 454029 , 459239 , 460738 , 466133 , 469370 , 471961 , 475873 , 480302 , 484217 , 505623 , 520679 , 534845 , 562907 , 564180 , 599962 , 640723 , 644682 , 669680 , 681304 , 716765 , 716797 , 716883 , 735027 , 752799 , 797008 , 799250 , 800708 , 813765 , 823910 );
Copy