93.14 ms (77.09%)
1
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
16930
32766
154707
191237
330414
383652
384758
388274
393476
396595
399088
406820
407291
408464
413695
417800
418723
425300
425910
429909
435449
443231
443364
447668
452063
454634
469497
470437
473723
477859
494148
501730
501839
501921
519105
549101
549287
574860
592567
630649
638828
641665
648257
650618
665642
666106
671675
674049
707443
709871
712879
730361
733565
740721
761066
765477
770837
792831
803078
804173
811418
812854
815449
817443
818213
818457
820345
820692
]
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 (16930 , 32766 , 154707 , 191237 , 330414 , 383652 , 384758 , 388274 , 393476 , 396595 , 399088 , 406820 , 407291 , 408464 , 413695 , 417800 , 418723 , 425300 , 425910 , 429909 , 435449 , 443231 , 443364 , 447668 , 452063 , 454634 , 469497 , 470437 , 473723 , 477859 , 494148 , 501730 , 501839 , 501921 , 519105 , 549101 , 549287 , 574860 , 592567 , 630649 , 638828 , 641665 , 648257 , 650618 , 665642 , 666106 , 671675 , 674049 , 707443 , 709871 , 712879 , 730361 , 733565 , 740721 , 761066 , 765477 , 770837 , 792831 , 803078 , 804173 , 811418 , 812854 , 815449 , 817443 , 818213 , 818457 , 820345 , 820692 );
Copy
11.67 ms (9.66%)
1
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
707443
818213
592567
393476
804173
811418
770837
383652
820345
817443
666106
803078
730361
733565
388274
32766
650618
812854
740721
709871
384758
418723
454634
674049
549101
638828
154707
330414
396595
408464
406820
820692
501921
473723
665642
574860
630649
792831
765477
501839
191237
413695
443231
815449
818457
470437
549287
671675
761066
407291
469497
501730
519105
399088
417800
494148
429909
452063
16930
425300
443364
712879
477859
425910
447668
641665
435449
648257
]
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 (707443 , 818213 , 592567 , 393476 , 804173 , 811418 , 770837 , 383652 , 820345 , 817443 , 666106 , 803078 , 730361 , 733565 , 388274 , 32766 , 650618 , 812854 , 740721 , 709871 , 384758 , 418723 , 454634 , 674049 , 549101 , 638828 , 154707 , 330414 , 396595 , 408464 , 406820 , 820692 , 501921 , 473723 , 665642 , 574860 , 630649 , 792831 , 765477 , 501839 , 191237 , 413695 , 443231 , 815449 , 818457 , 470437 , 549287 , 671675 , 761066 , 407291 , 469497 , 501730 , 519105 , 399088 , 417800 , 494148 , 429909 , 452063 , 16930 , 425300 , 443364 , 712879 , 477859 , 425910 , 447668 , 641665 , 435449 , 648257 );
Copy
2.91 ms (2.41%)
1
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
16930
32766
154707
191237
330414
383652
384758
388274
393476
396595
399088
406820
407291
408464
413695
417800
418723
425300
425910
429909
435449
443231
443364
447668
452063
454634
469497
470437
473723
477859
494148
501730
501839
501921
519105
549101
549287
574860
592567
630649
638828
641665
648257
650618
665642
666106
671675
674049
707443
709871
712879
730361
733565
740721
761066
765477
770837
792831
803078
804173
811418
812854
815449
817443
818213
818457
820345
820692
]
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 (16930 , 32766 , 154707 , 191237 , 330414 , 383652 , 384758 , 388274 , 393476 , 396595 , 399088 , 406820 , 407291 , 408464 , 413695 , 417800 , 418723 , 425300 , 425910 , 429909 , 435449 , 443231 , 443364 , 447668 , 452063 , 454634 , 469497 , 470437 , 473723 , 477859 , 494148 , 501730 , 501839 , 501921 , 519105 , 549101 , 549287 , 574860 , 592567 , 630649 , 638828 , 641665 , 648257 , 650618 , 665642 , 666106 , 671675 , 674049 , 707443 , 709871 , 712879 , 730361 , 733565 , 740721 , 761066 , 765477 , 770837 , 792831 , 803078 , 804173 , 811418 , 812854 , 815449 , 817443 , 818213 , 818457 , 820345 , 820692 );
Copy