87.43 ms (24.12%)
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
381776
387437
397849
408439
416303
447500
511751
511766
512261
518470
522779
522791
522792
527627
527792
530766
531254
532852
534984
534995
535026
543658
558843
559214
568573
574776
574884
575079
575461
575494
575729
575803
576052
576359
576364
582371
593873
600061
601101
603193
604868
619822
628321
630755
637044
639762
640763
645853
645891
645919
653567
671863
678052
679461
679798
679816
683272
696214
701501
731816
735430
743117
748236
759650
771845
775781
776521
788268
]
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 (381776 , 387437 , 397849 , 408439 , 416303 , 447500 , 511751 , 511766 , 512261 , 518470 , 522779 , 522791 , 522792 , 527627 , 527792 , 530766 , 531254 , 532852 , 534984 , 534995 , 535026 , 543658 , 558843 , 559214 , 568573 , 574776 , 574884 , 575079 , 575461 , 575494 , 575729 , 575803 , 576052 , 576359 , 576364 , 582371 , 593873 , 600061 , 601101 , 603193 , 604868 , 619822 , 628321 , 630755 , 637044 , 639762 , 640763 , 645853 , 645891 , 645919 , 653567 , 671863 , 678052 , 679461 , 679798 , 679816 , 683272 , 696214 , 701501 , 731816 , 735430 , 743117 , 748236 , 759650 , 771845 , 775781 , 776521 , 788268 );
Copy
13.36 ms (3.69%)
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
775781
759650
576359
574776
735430
743117
387437
381776
522779
522791
511751
788268
511766
543658
530766
568573
416303
645853
532852
683272
645919
731816
531254
534995
645891
701501
593873
628321
535026
679798
558843
619822
776521
527627
397849
575079
575803
679461
696214
630755
748236
771845
408439
522792
527792
559214
575729
576364
582371
576052
574884
575461
575494
603193
512261
679816
600061
639762
604868
640763
447500
518470
678052
637044
534984
653567
671863
601101
]
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 (775781 , 759650 , 576359 , 574776 , 735430 , 743117 , 387437 , 381776 , 522779 , 522791 , 511751 , 788268 , 511766 , 543658 , 530766 , 568573 , 416303 , 645853 , 532852 , 683272 , 645919 , 731816 , 531254 , 534995 , 645891 , 701501 , 593873 , 628321 , 535026 , 679798 , 558843 , 619822 , 776521 , 527627 , 397849 , 575079 , 575803 , 679461 , 696214 , 630755 , 748236 , 771845 , 408439 , 522792 , 527792 , 559214 , 575729 , 576364 , 582371 , 576052 , 574884 , 575461 , 575494 , 603193 , 512261 , 679816 , 600061 , 639762 , 604868 , 640763 , 447500 , 518470 , 678052 , 637044 , 534984 , 653567 , 671863 , 601101 );
Copy
2.57 ms (0.71%)
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
381776
387437
397849
408439
416303
447500
511751
511766
512261
518470
522779
522791
522792
527627
527792
530766
531254
532852
534984
534995
535026
543658
558843
559214
568573
574776
574884
575079
575461
575494
575729
575803
576052
576359
576364
582371
593873
600061
601101
603193
604868
619822
628321
630755
637044
639762
640763
645853
645891
645919
653567
671863
678052
679461
679798
679816
683272
696214
701501
731816
735430
743117
748236
759650
771845
775781
776521
788268
]
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 (381776 , 387437 , 397849 , 408439 , 416303 , 447500 , 511751 , 511766 , 512261 , 518470 , 522779 , 522791 , 522792 , 527627 , 527792 , 530766 , 531254 , 532852 , 534984 , 534995 , 535026 , 543658 , 558843 , 559214 , 568573 , 574776 , 574884 , 575079 , 575461 , 575494 , 575729 , 575803 , 576052 , 576359 , 576364 , 582371 , 593873 , 600061 , 601101 , 603193 , 604868 , 619822 , 628321 , 630755 , 637044 , 639762 , 640763 , 645853 , 645891 , 645919 , 653567 , 671863 , 678052 , 679461 , 679798 , 679816 , 683272 , 696214 , 701501 , 731816 , 735430 , 743117 , 748236 , 759650 , 771845 , 775781 , 776521 , 788268 );
Copy