110.25 ms (64.07%)
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
406121
443590
446874
473418
474600
497448
497459
499783
530681
530696
533369
534027
534032
535505
535643
536687
539203
540518
541197
542583
542590
545418
545611
588265
590989
598105
599889
599990
600363
610555
623196
628333
628382
628383
630221
630537
630544
630764
631195
632579
632978
633770
633775
634115
634153
634198
640759
642025
642041
642700
645276
646900
647635
647830
647836
647952
647972
647993
648257
648859
672710
672712
696579
707391
711896
742158
819573
]
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 (406121 , 443590 , 446874 , 473418 , 474600 , 497448 , 497459 , 499783 , 530681 , 530696 , 533369 , 534027 , 534032 , 535505 , 535643 , 536687 , 539203 , 540518 , 541197 , 542583 , 542590 , 545418 , 545611 , 588265 , 590989 , 598105 , 599889 , 599990 , 600363 , 610555 , 623196 , 628333 , 628382 , 628383 , 630221 , 630537 , 630544 , 630764 , 631195 , 632579 , 632978 , 633770 , 633775 , 634115 , 634153 , 634198 , 640759 , 642025 , 642041 , 642700 , 645276 , 646900 , 647635 , 647830 , 647836 , 647952 , 647972 , 647993 , 648257 , 648859 , 672710 , 672712 , 696579 , 707391 , 711896 , 742158 , 819573 );
Copy
13.04 ms (7.58%)
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
497448
742158
646900
630544
648859
630221
530681
631195
640759
647635
642041
645276
642025
530696
533369
623196
630764
539203
707391
630537
632579
446874
819573
711896
599889
590989
443590
647836
497459
534032
642700
535643
474600
499783
542583
542590
599990
535505
536687
540518
541197
696579
647993
672710
672712
647830
647952
633770
634153
600363
628382
633775
406121
534027
647972
610555
634115
632978
473418
545611
634198
628383
588265
545418
648257
628333
598105
]
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 (497448 , 742158 , 646900 , 630544 , 648859 , 630221 , 530681 , 631195 , 640759 , 647635 , 642041 , 645276 , 642025 , 530696 , 533369 , 623196 , 630764 , 539203 , 707391 , 630537 , 632579 , 446874 , 819573 , 711896 , 599889 , 590989 , 443590 , 647836 , 497459 , 534032 , 642700 , 535643 , 474600 , 499783 , 542583 , 542590 , 599990 , 535505 , 536687 , 540518 , 541197 , 696579 , 647993 , 672710 , 672712 , 647830 , 647952 , 633770 , 634153 , 600363 , 628382 , 633775 , 406121 , 534027 , 647972 , 610555 , 634115 , 632978 , 473418 , 545611 , 634198 , 628383 , 588265 , 545418 , 648257 , 628333 , 598105 );
Copy
2.64 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
406121
443590
446874
473418
474600
497448
497459
499783
530681
530696
533369
534027
534032
535505
535643
536687
539203
540518
541197
542583
542590
545418
545611
588265
590989
598105
599889
599990
600363
610555
623196
628333
628382
628383
630221
630537
630544
630764
631195
632579
632978
633770
633775
634115
634153
634198
640759
642025
642041
642700
645276
646900
647635
647830
647836
647952
647972
647993
648257
648859
672710
672712
696579
707391
711896
742158
819573
]
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 (406121 , 443590 , 446874 , 473418 , 474600 , 497448 , 497459 , 499783 , 530681 , 530696 , 533369 , 534027 , 534032 , 535505 , 535643 , 536687 , 539203 , 540518 , 541197 , 542583 , 542590 , 545418 , 545611 , 588265 , 590989 , 598105 , 599889 , 599990 , 600363 , 610555 , 623196 , 628333 , 628382 , 628383 , 630221 , 630537 , 630544 , 630764 , 631195 , 632579 , 632978 , 633770 , 633775 , 634115 , 634153 , 634198 , 640759 , 642025 , 642041 , 642700 , 645276 , 646900 , 647635 , 647830 , 647836 , 647952 , 647972 , 647993 , 648257 , 648859 , 672710 , 672712 , 696579 , 707391 , 711896 , 742158 , 819573 );
Copy