92.47 ms (26.83%)
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
382401
387677
397212
413438
429125
434133
454707
458550
458557
474310
479871
505927
517777
532251
534663
536711
540782
541707
550013
550677
579466
585025
585043
585045
585058
585065
585077
585078
598970
627336
628722
634369
637463
637478
637550
643700
644276
650281
655500
662905
704243
708698
712882
722009
723921
730055
744953
749380
750540
751191
751198
751784
755554
756397
781373
783339
783363
785213
787182
794066
795190
806980
812216
820328
824159
824583
827625
827641
]
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 (382401 , 387677 , 397212 , 413438 , 429125 , 434133 , 454707 , 458550 , 458557 , 474310 , 479871 , 505927 , 517777 , 532251 , 534663 , 536711 , 540782 , 541707 , 550013 , 550677 , 579466 , 585025 , 585043 , 585045 , 585058 , 585065 , 585077 , 585078 , 598970 , 627336 , 628722 , 634369 , 637463 , 637478 , 637550 , 643700 , 644276 , 650281 , 655500 , 662905 , 704243 , 708698 , 712882 , 722009 , 723921 , 730055 , 744953 , 749380 , 750540 , 751191 , 751198 , 751784 , 755554 , 756397 , 781373 , 783339 , 783363 , 785213 , 787182 , 794066 , 795190 , 806980 , 812216 , 820328 , 824159 , 824583 , 827625 , 827641 );
Copy
10.81 ms (3.14%)
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
585045
824159
397212
756397
730055
827625
812216
751784
749380
540782
585058
723921
704243
628722
429125
585065
585043
824583
722009
783339
750540
744953
751191
787182
585078
827641
637478
794066
783363
806980
637550
479871
655500
708698
634369
751198
781373
505927
536711
820328
662905
650281
627336
643700
517777
458557
550677
550013
474310
579466
541707
413438
585025
454707
598970
637463
795190
382401
387677
712882
585077
534663
755554
785213
434133
458550
644276
532251
]
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 (585045 , 824159 , 397212 , 756397 , 730055 , 827625 , 812216 , 751784 , 749380 , 540782 , 585058 , 723921 , 704243 , 628722 , 429125 , 585065 , 585043 , 824583 , 722009 , 783339 , 750540 , 744953 , 751191 , 787182 , 585078 , 827641 , 637478 , 794066 , 783363 , 806980 , 637550 , 479871 , 655500 , 708698 , 634369 , 751198 , 781373 , 505927 , 536711 , 820328 , 662905 , 650281 , 627336 , 643700 , 517777 , 458557 , 550677 , 550013 , 474310 , 579466 , 541707 , 413438 , 585025 , 454707 , 598970 , 637463 , 795190 , 382401 , 387677 , 712882 , 585077 , 534663 , 755554 , 785213 , 434133 , 458550 , 644276 , 532251 );
Copy
2.86 ms (0.83%)
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
382401
387677
397212
413438
429125
434133
454707
458550
458557
474310
479871
505927
517777
532251
534663
536711
540782
541707
550013
550677
579466
585025
585043
585045
585058
585065
585077
585078
598970
627336
628722
634369
637463
637478
637550
643700
644276
650281
655500
662905
704243
708698
712882
722009
723921
730055
744953
749380
750540
751191
751198
751784
755554
756397
781373
783339
783363
785213
787182
794066
795190
806980
812216
820328
824159
824583
827625
827641
]
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 (382401 , 387677 , 397212 , 413438 , 429125 , 434133 , 454707 , 458550 , 458557 , 474310 , 479871 , 505927 , 517777 , 532251 , 534663 , 536711 , 540782 , 541707 , 550013 , 550677 , 579466 , 585025 , 585043 , 585045 , 585058 , 585065 , 585077 , 585078 , 598970 , 627336 , 628722 , 634369 , 637463 , 637478 , 637550 , 643700 , 644276 , 650281 , 655500 , 662905 , 704243 , 708698 , 712882 , 722009 , 723921 , 730055 , 744953 , 749380 , 750540 , 751191 , 751198 , 751784 , 755554 , 756397 , 781373 , 783339 , 783363 , 785213 , 787182 , 794066 , 795190 , 806980 , 812216 , 820328 , 824159 , 824583 , 827625 , 827641 );
Copy