97.31 ms (72.05%)
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
404175
410615
428494
431504
432662
445387
454777
454931
462863
464952
468369
472906
478148
481142
482192
487628
494779
497873
501027
510681
512961
514214
514912
522681
525898
532848
533390
543013
545389
545441
555468
561998
565418
575406
578729
580201
581242
585668
591727
597736
621375
624288
630893
632645
632654
632703
637400
637404
642060
656635
666883
670821
675380
682263
706935
707617
727032
748053
755498
799767
808851
816803
]
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 (404175 , 410615 , 428494 , 431504 , 432662 , 445387 , 454777 , 454931 , 462863 , 464952 , 468369 , 472906 , 478148 , 481142 , 482192 , 487628 , 494779 , 497873 , 501027 , 510681 , 512961 , 514214 , 514912 , 522681 , 525898 , 532848 , 533390 , 543013 , 545389 , 545441 , 555468 , 561998 , 565418 , 575406 , 578729 , 580201 , 581242 , 585668 , 591727 , 597736 , 621375 , 624288 , 630893 , 632645 , 632654 , 632703 , 637400 , 637404 , 642060 , 656635 , 666883 , 670821 , 675380 , 682263 , 706935 , 707617 , 727032 , 748053 , 755498 , 799767 , 808851 , 816803 );
Copy
13.47 ms (9.98%)
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
799767
808851
748053
727032
707617
468369
561998
431504
445387
816803
555468
472906
512961
514912
525898
482192
565418
670821
706935
581242
637400
591727
621375
630893
464952
481142
404175
532848
533390
497873
510681
575406
632703
642060
624288
410615
682263
637404
432662
454777
522681
514214
580201
578729
632654
428494
656635
545441
675380
666883
632645
462863
454931
494779
501027
755498
478148
545389
487628
543013
597736
585668
]
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 (799767 , 808851 , 748053 , 727032 , 707617 , 468369 , 561998 , 431504 , 445387 , 816803 , 555468 , 472906 , 512961 , 514912 , 525898 , 482192 , 565418 , 670821 , 706935 , 581242 , 637400 , 591727 , 621375 , 630893 , 464952 , 481142 , 404175 , 532848 , 533390 , 497873 , 510681 , 575406 , 632703 , 642060 , 624288 , 410615 , 682263 , 637404 , 432662 , 454777 , 522681 , 514214 , 580201 , 578729 , 632654 , 428494 , 656635 , 545441 , 675380 , 666883 , 632645 , 462863 , 454931 , 494779 , 501027 , 755498 , 478148 , 545389 , 487628 , 543013 , 597736 , 585668 );
Copy
3.23 ms (2.39%)
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
404175
410615
428494
431504
432662
445387
454777
454931
462863
464952
468369
472906
478148
481142
482192
487628
494779
497873
501027
510681
512961
514214
514912
522681
525898
532848
533390
543013
545389
545441
555468
561998
565418
575406
578729
580201
581242
585668
591727
597736
621375
624288
630893
632645
632654
632703
637400
637404
642060
656635
666883
670821
675380
682263
706935
707617
727032
748053
755498
799767
808851
816803
]
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 (404175 , 410615 , 428494 , 431504 , 432662 , 445387 , 454777 , 454931 , 462863 , 464952 , 468369 , 472906 , 478148 , 481142 , 482192 , 487628 , 494779 , 497873 , 501027 , 510681 , 512961 , 514214 , 514912 , 522681 , 525898 , 532848 , 533390 , 543013 , 545389 , 545441 , 555468 , 561998 , 565418 , 575406 , 578729 , 580201 , 581242 , 585668 , 591727 , 597736 , 621375 , 624288 , 630893 , 632645 , 632654 , 632703 , 637400 , 637404 , 642060 , 656635 , 666883 , 670821 , 675380 , 682263 , 706935 , 707617 , 727032 , 748053 , 755498 , 799767 , 808851 , 816803 );
Copy