140.06 ms (35.22%)
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
418401
426762
441159
443215
443467
446461
447632
451854
452722
461306
471865
475171
481001
492667
492926
492994
493287
493453
495337
498980
499089
506290
512825
514483
523644
524736
526242
527970
546273
548153
551457
555487
556164
558387
558566
568098
575589
575648
576445
579344
580148
580588
583293
585717
590609
592970
594282
595447
598786
601313
602783
604092
607098
610078
614018
618741
668814
673874
678247
688829
729871
768905
779193
785606
810852
814810
819681
824393
825561
827970
]
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 (418401 , 426762 , 441159 , 443215 , 443467 , 446461 , 447632 , 451854 , 452722 , 461306 , 471865 , 475171 , 481001 , 492667 , 492926 , 492994 , 493287 , 493453 , 495337 , 498980 , 499089 , 506290 , 512825 , 514483 , 523644 , 524736 , 526242 , 527970 , 546273 , 548153 , 551457 , 555487 , 556164 , 558387 , 558566 , 568098 , 575589 , 575648 , 576445 , 579344 , 580148 , 580588 , 583293 , 585717 , 590609 , 592970 , 594282 , 595447 , 598786 , 601313 , 602783 , 604092 , 607098 , 610078 , 614018 , 618741 , 668814 , 673874 , 678247 , 688829 , 729871 , 768905 , 779193 , 785606 , 810852 , 814810 , 819681 , 824393 , 825561 , 827970 );
Copy
10.07 ms (2.53%)
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
446461
824393
441159
729871
471865
556164
614018
827970
546273
819681
492667
607098
447632
498980
673874
688829
668814
514483
583293
678247
595447
610078
418401
555487
594282
481001
527970
576445
461306
558387
551457
592970
601313
590609
768905
779193
618741
825561
452722
580588
568098
575648
602783
493453
512825
785606
492926
443467
814810
475171
451854
426762
492994
524736
493287
495337
526242
575589
548153
810852
499089
580148
598786
585717
604092
523644
506290
443215
558566
579344
]
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 (446461 , 824393 , 441159 , 729871 , 471865 , 556164 , 614018 , 827970 , 546273 , 819681 , 492667 , 607098 , 447632 , 498980 , 673874 , 688829 , 668814 , 514483 , 583293 , 678247 , 595447 , 610078 , 418401 , 555487 , 594282 , 481001 , 527970 , 576445 , 461306 , 558387 , 551457 , 592970 , 601313 , 590609 , 768905 , 779193 , 618741 , 825561 , 452722 , 580588 , 568098 , 575648 , 602783 , 493453 , 512825 , 785606 , 492926 , 443467 , 814810 , 475171 , 451854 , 426762 , 492994 , 524736 , 493287 , 495337 , 526242 , 575589 , 548153 , 810852 , 499089 , 580148 , 598786 , 585717 , 604092 , 523644 , 506290 , 443215 , 558566 , 579344 );
Copy
3.87 ms (0.97%)
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
418401
426762
441159
443215
443467
446461
447632
451854
452722
461306
471865
475171
481001
492667
492926
492994
493287
493453
495337
498980
499089
506290
512825
514483
523644
524736
526242
527970
546273
548153
551457
555487
556164
558387
558566
568098
575589
575648
576445
579344
580148
580588
583293
585717
590609
592970
594282
595447
598786
601313
602783
604092
607098
610078
614018
618741
668814
673874
678247
688829
729871
768905
779193
785606
810852
814810
819681
824393
825561
827970
]
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 (418401 , 426762 , 441159 , 443215 , 443467 , 446461 , 447632 , 451854 , 452722 , 461306 , 471865 , 475171 , 481001 , 492667 , 492926 , 492994 , 493287 , 493453 , 495337 , 498980 , 499089 , 506290 , 512825 , 514483 , 523644 , 524736 , 526242 , 527970 , 546273 , 548153 , 551457 , 555487 , 556164 , 558387 , 558566 , 568098 , 575589 , 575648 , 576445 , 579344 , 580148 , 580588 , 583293 , 585717 , 590609 , 592970 , 594282 , 595447 , 598786 , 601313 , 602783 , 604092 , 607098 , 610078 , 614018 , 618741 , 668814 , 673874 , 678247 , 688829 , 729871 , 768905 , 779193 , 785606 , 810852 , 814810 , 819681 , 824393 , 825561 , 827970 );
Copy