118.42 ms (77.16%)
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
395278
413949
424083
439719
439757
439925
443025
459075
461535
461912
477007
477176
480989
481626
482030
487065
520087
522263
522488
524370
525438
527683
528554
547694
549638
551077
552104
552769
555610
557042
557572
558850
561871
568594
573741
573782
574781
575501
586727
592153
603778
615471
619518
700898
707894
724093
742099
754235
770549
772638
777463
777690
777888
779567
790553
790932
794057
794451
807271
809982
810440
813941
825549
825647
825706
]
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 (395278 , 413949 , 424083 , 439719 , 439757 , 439925 , 443025 , 459075 , 461535 , 461912 , 477007 , 477176 , 480989 , 481626 , 482030 , 487065 , 520087 , 522263 , 522488 , 524370 , 525438 , 527683 , 528554 , 547694 , 549638 , 551077 , 552104 , 552769 , 555610 , 557042 , 557572 , 558850 , 561871 , 568594 , 573741 , 573782 , 574781 , 575501 , 586727 , 592153 , 603778 , 615471 , 619518 , 700898 , 707894 , 724093 , 742099 , 754235 , 770549 , 772638 , 777463 , 777690 , 777888 , 779567 , 790553 , 790932 , 794057 , 794451 , 807271 , 809982 , 810440 , 813941 , 825549 , 825647 , 825706 );
Copy
8.97 ms (5.84%)
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
395278
825549
825647
754235
777690
794057
813941
552769
615471
794451
770549
825706
790932
700898
551077
742099
772638
480989
547694
555610
790553
777888
724093
619518
777463
807271
487065
481626
461912
482030
520087
525438
528554
809982
810440
424083
568594
707894
443025
459075
461535
552104
586727
477176
522263
561871
575501
558850
574781
603778
573741
413949
527683
477007
573782
557572
592153
779567
439719
522488
439757
524370
549638
557042
439925
]
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 (395278 , 825549 , 825647 , 754235 , 777690 , 794057 , 813941 , 552769 , 615471 , 794451 , 770549 , 825706 , 790932 , 700898 , 551077 , 742099 , 772638 , 480989 , 547694 , 555610 , 790553 , 777888 , 724093 , 619518 , 777463 , 807271 , 487065 , 481626 , 461912 , 482030 , 520087 , 525438 , 528554 , 809982 , 810440 , 424083 , 568594 , 707894 , 443025 , 459075 , 461535 , 552104 , 586727 , 477176 , 522263 , 561871 , 575501 , 558850 , 574781 , 603778 , 573741 , 413949 , 527683 , 477007 , 573782 , 557572 , 592153 , 779567 , 439719 , 522488 , 439757 , 524370 , 549638 , 557042 , 439925 );
Copy
2.36 ms (1.54%)
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
395278
413949
424083
439719
439757
439925
443025
459075
461535
461912
477007
477176
480989
481626
482030
487065
520087
522263
522488
524370
525438
527683
528554
547694
549638
551077
552104
552769
555610
557042
557572
558850
561871
568594
573741
573782
574781
575501
586727
592153
603778
615471
619518
700898
707894
724093
742099
754235
770549
772638
777463
777690
777888
779567
790553
790932
794057
794451
807271
809982
810440
813941
825549
825647
825706
]
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 (395278 , 413949 , 424083 , 439719 , 439757 , 439925 , 443025 , 459075 , 461535 , 461912 , 477007 , 477176 , 480989 , 481626 , 482030 , 487065 , 520087 , 522263 , 522488 , 524370 , 525438 , 527683 , 528554 , 547694 , 549638 , 551077 , 552104 , 552769 , 555610 , 557042 , 557572 , 558850 , 561871 , 568594 , 573741 , 573782 , 574781 , 575501 , 586727 , 592153 , 603778 , 615471 , 619518 , 700898 , 707894 , 724093 , 742099 , 754235 , 770549 , 772638 , 777463 , 777690 , 777888 , 779567 , 790553 , 790932 , 794057 , 794451 , 807271 , 809982 , 810440 , 813941 , 825549 , 825647 , 825706 );
Copy