115.89 ms (63.64%)
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
401757
410734
420741
420860
422474
426117
428913
435433
436187
436656
441389
441629
442400
443858
443884
445145
452264
454871
455881
456987
461998
462526
471599
475579
476806
481023
485389
485420
486327
496497
502230
506437
511811
516603
530192
541779
544109
559406
567232
590005
602662
603236
612467
615138
626224
632124
632304
640776
646135
679659
707843
714062
761677
762278
767611
776109
782184
788901
796528
804496
814502
817342
820810
824284
826044
827357
827535
]
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 (401757 , 410734 , 420741 , 420860 , 422474 , 426117 , 428913 , 435433 , 436187 , 436656 , 441389 , 441629 , 442400 , 443858 , 443884 , 445145 , 452264 , 454871 , 455881 , 456987 , 461998 , 462526 , 471599 , 475579 , 476806 , 481023 , 485389 , 485420 , 486327 , 496497 , 502230 , 506437 , 511811 , 516603 , 530192 , 541779 , 544109 , 559406 , 567232 , 590005 , 602662 , 603236 , 612467 , 615138 , 626224 , 632124 , 632304 , 640776 , 646135 , 679659 , 707843 , 714062 , 761677 , 762278 , 767611 , 776109 , 782184 , 788901 , 796528 , 804496 , 814502 , 817342 , 820810 , 824284 , 826044 , 827357 , 827535 );
Copy
7.37 ms (4.05%)
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
826044
796528
814502
824284
559406
804496
827357
401757
827535
817342
590005
776109
762278
782184
820810
646135
541779
761677
485389
486327
602662
443884
481023
615138
632124
767611
788901
471599
516603
445145
428913
496497
567232
714062
707843
640776
475579
476806
632304
679659
420860
443858
442400
485420
511811
530192
626224
612467
452264
441629
410734
502230
441389
513372
544109
603236
461998
506437
456987
426117
436656
455881
435433
422474
454871
462526
436187
420741
]
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 (826044 , 796528 , 814502 , 824284 , 559406 , 804496 , 827357 , 401757 , 827535 , 817342 , 590005 , 776109 , 762278 , 782184 , 820810 , 646135 , 541779 , 761677 , 485389 , 486327 , 602662 , 443884 , 481023 , 615138 , 632124 , 767611 , 788901 , 471599 , 516603 , 445145 , 428913 , 496497 , 567232 , 714062 , 707843 , 640776 , 475579 , 476806 , 632304 , 679659 , 420860 , 443858 , 442400 , 485420 , 511811 , 530192 , 626224 , 612467 , 452264 , 441629 , 410734 , 502230 , 441389 , 513372 , 544109 , 603236 , 461998 , 506437 , 456987 , 426117 , 436656 , 455881 , 435433 , 422474 , 454871 , 462526 , 436187 , 420741 );
Copy
2.79 ms (1.53%)
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
401757
410734
420741
420860
422474
426117
428913
435433
436187
436656
441389
441629
442400
443858
443884
445145
452264
454871
455881
456987
461998
462526
471599
475579
476806
481023
485389
485420
486327
496497
502230
506437
511811
516603
530192
541779
544109
559406
567232
590005
602662
603236
612467
615138
626224
632124
632304
640776
646135
679659
707843
714062
761677
762278
767611
776109
782184
788901
796528
804496
814502
817342
820810
824284
826044
827357
827535
]
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 (401757 , 410734 , 420741 , 420860 , 422474 , 426117 , 428913 , 435433 , 436187 , 436656 , 441389 , 441629 , 442400 , 443858 , 443884 , 445145 , 452264 , 454871 , 455881 , 456987 , 461998 , 462526 , 471599 , 475579 , 476806 , 481023 , 485389 , 485420 , 486327 , 496497 , 502230 , 506437 , 511811 , 516603 , 530192 , 541779 , 544109 , 559406 , 567232 , 590005 , 602662 , 603236 , 612467 , 615138 , 626224 , 632124 , 632304 , 640776 , 646135 , 679659 , 707843 , 714062 , 761677 , 762278 , 767611 , 776109 , 782184 , 788901 , 796528 , 804496 , 814502 , 817342 , 820810 , 824284 , 826044 , 827357 , 827535 );
Copy