87.12 ms (67.93%)
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
419351
423740
424255
430546
433584
451133
456977
465609
490862
491666
492986
500134
503498
504848
514315
517927
519345
521193
521495
525884
527889
529074
533289
534110
553545
553591
554952
562626
564488
565143
574902
575197
575728
577433
578255
579396
579537
579633
585156
588052
590667
598840
600859
601519
602562
607342
613708
620754
621259
621745
645893
645939
649123
650276
659025
671816
672752
684802
717410
739475
789009
817443
]
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 (419351 , 423740 , 424255 , 430546 , 433584 , 451133 , 456977 , 465609 , 490862 , 491666 , 492986 , 500134 , 503498 , 504848 , 514315 , 517927 , 519345 , 521193 , 521495 , 525884 , 527889 , 529074 , 533289 , 534110 , 553545 , 553591 , 554952 , 562626 , 564488 , 565143 , 574902 , 575197 , 575728 , 577433 , 578255 , 579396 , 579537 , 579633 , 585156 , 588052 , 590667 , 598840 , 600859 , 601519 , 602562 , 607342 , 613708 , 620754 , 621259 , 621745 , 645893 , 645939 , 649123 , 650276 , 659025 , 671816 , 672752 , 684802 , 717410 , 739475 , 789009 , 817443 );
Copy
8.98 ms (7.00%)
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
534110
578255
554952
564488
565143
579537
650276
672752
645893
717410
553591
598840
600859
607342
621745
601519
465609
517927
503498
579396
645939
671816
588052
585156
419351
433584
504848
817443
789009
527889
577433
579633
602562
613708
423740
525884
574902
739475
430546
533289
553545
514315
529074
456977
490862
575728
491666
492986
500134
424255
684802
451133
521495
620754
521193
562626
659025
649123
519345
575197
590667
621259
]
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 (534110 , 578255 , 554952 , 564488 , 565143 , 579537 , 650276 , 672752 , 645893 , 717410 , 553591 , 598840 , 600859 , 607342 , 621745 , 601519 , 465609 , 517927 , 503498 , 579396 , 645939 , 671816 , 588052 , 585156 , 419351 , 433584 , 504848 , 817443 , 789009 , 527889 , 577433 , 579633 , 602562 , 613708 , 423740 , 525884 , 574902 , 739475 , 430546 , 533289 , 553545 , 514315 , 529074 , 456977 , 490862 , 575728 , 491666 , 492986 , 500134 , 424255 , 684802 , 451133 , 521495 , 620754 , 521193 , 562626 , 659025 , 649123 , 519345 , 575197 , 590667 , 621259 );
Copy
2.26 ms (1.76%)
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
419351
423740
424255
430546
433584
451133
456977
465609
490862
491666
492986
500134
503498
504848
514315
517927
519345
521193
521495
525884
527889
529074
533289
534110
553545
553591
554952
562626
564488
565143
574902
575197
575728
577433
578255
579396
579537
579633
585156
588052
590667
598840
600859
601519
602562
607342
613708
620754
621259
621745
645893
645939
649123
650276
659025
671816
672752
684802
717410
739475
789009
817443
]
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 (419351 , 423740 , 424255 , 430546 , 433584 , 451133 , 456977 , 465609 , 490862 , 491666 , 492986 , 500134 , 503498 , 504848 , 514315 , 517927 , 519345 , 521193 , 521495 , 525884 , 527889 , 529074 , 533289 , 534110 , 553545 , 553591 , 554952 , 562626 , 564488 , 565143 , 574902 , 575197 , 575728 , 577433 , 578255 , 579396 , 579537 , 579633 , 585156 , 588052 , 590667 , 598840 , 600859 , 601519 , 602562 , 607342 , 613708 , 620754 , 621259 , 621745 , 645893 , 645939 , 649123 , 650276 , 659025 , 671816 , 672752 , 684802 , 717410 , 739475 , 789009 , 817443 );
Copy