76.81 ms (14.23%)
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
386791
393499
397036
411805
419452
419956
447888
454642
474772
495124
510067
523361
550611
556423
556485
562240
564009
568419
569854
570010
570246
570256
570290
570311
570481
570872
571005
571565
571615
571834
571876
571932
572448
572480
572489
572494
572792
572800
572801
576987
588439
588989
594272
595545
603723
603895
605301
606049
606566
623199
623211
628481
636270
660023
671141
686285
691050
722691
728060
728761
770928
770947
781015
784141
794485
814092
817782
]
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 (386791 , 393499 , 397036 , 411805 , 419452 , 419956 , 447888 , 454642 , 474772 , 495124 , 510067 , 523361 , 550611 , 556423 , 556485 , 562240 , 564009 , 568419 , 569854 , 570010 , 570246 , 570256 , 570290 , 570311 , 570481 , 570872 , 571005 , 571565 , 571615 , 571834 , 571876 , 571932 , 572448 , 572480 , 572489 , 572494 , 572792 , 572800 , 572801 , 576987 , 588439 , 588989 , 594272 , 595545 , 603723 , 603895 , 605301 , 606049 , 606566 , 623199 , 623211 , 628481 , 636270 , 660023 , 671141 , 686285 , 691050 , 722691 , 728060 , 728761 , 770928 , 770947 , 781015 , 784141 , 794485 , 814092 , 817782 );
Copy
11.07 ms (2.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
691050
794485
671141
728761
784141
728060
817782
595545
393499
660023
570256
572801
495124
603723
814092
569854
570246
572480
594272
562240
572792
572489
571876
570290
386791
570872
628481
781015
411805
523361
571615
571932
570010
636270
588439
603895
686285
572448
606566
572494
454642
571565
572800
474772
568419
623199
570481
770928
770947
510067
722691
397036
605301
588989
570311
623211
419956
550611
576987
556423
447888
419452
556485
571005
606049
571834
564009
]
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 (691050 , 794485 , 671141 , 728761 , 784141 , 728060 , 817782 , 595545 , 393499 , 660023 , 570256 , 572801 , 495124 , 603723 , 814092 , 569854 , 570246 , 572480 , 594272 , 562240 , 572792 , 572489 , 571876 , 570290 , 386791 , 570872 , 628481 , 781015 , 411805 , 523361 , 571615 , 571932 , 570010 , 636270 , 588439 , 603895 , 686285 , 572448 , 606566 , 572494 , 454642 , 571565 , 572800 , 474772 , 568419 , 623199 , 570481 , 770928 , 770947 , 510067 , 722691 , 397036 , 605301 , 588989 , 570311 , 623211 , 419956 , 550611 , 576987 , 556423 , 447888 , 419452 , 556485 , 571005 , 606049 , 571834 , 564009 );
Copy
2.37 ms (0.44%)
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
386791
393499
397036
411805
419452
419956
447888
454642
474772
495124
510067
523361
550611
556423
556485
562240
564009
568419
569854
570010
570246
570256
570290
570311
570481
570872
571005
571565
571615
571834
571876
571932
572448
572480
572489
572494
572792
572800
572801
576987
588439
588989
594272
595545
603723
603895
605301
606049
606566
623199
623211
628481
636270
660023
671141
686285
691050
722691
728060
728761
770928
770947
781015
784141
794485
814092
817782
]
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 (386791 , 393499 , 397036 , 411805 , 419452 , 419956 , 447888 , 454642 , 474772 , 495124 , 510067 , 523361 , 550611 , 556423 , 556485 , 562240 , 564009 , 568419 , 569854 , 570010 , 570246 , 570256 , 570290 , 570311 , 570481 , 570872 , 571005 , 571565 , 571615 , 571834 , 571876 , 571932 , 572448 , 572480 , 572489 , 572494 , 572792 , 572800 , 572801 , 576987 , 588439 , 588989 , 594272 , 595545 , 603723 , 603895 , 605301 , 606049 , 606566 , 623199 , 623211 , 628481 , 636270 , 660023 , 671141 , 686285 , 691050 , 722691 , 728060 , 728761 , 770928 , 770947 , 781015 , 784141 , 794485 , 814092 , 817782 );
Copy