89.76 ms (50.24%)
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
392486
436692
440728
442922
451175
451518
455019
455049
455067
455118
456299
456908
458249
460295
466453
470108
473940
474170
474310
474800
476655
477634
477941
478395
485359
487808
491947
491962
493341
501225
501801
504057
505561
507435
512283
512305
512972
514694
516179
517349
524754
537454
537982
543570
543750
546664
558839
581402
590334
595423
595427
600279
671701
678625
683272
693340
730649
735995
736865
740714
741170
741389
766846
771658
773262
796598
]
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 (392486 , 436692 , 440728 , 442922 , 451175 , 451518 , 455019 , 455049 , 455067 , 455118 , 456299 , 456908 , 458249 , 460295 , 466453 , 470108 , 473940 , 474170 , 474310 , 474800 , 476655 , 477634 , 477941 , 478395 , 485359 , 487808 , 491947 , 491962 , 493341 , 501225 , 501801 , 504057 , 505561 , 507435 , 512283 , 512305 , 512972 , 514694 , 516179 , 517349 , 524754 , 537454 , 537982 , 543570 , 543750 , 546664 , 558839 , 581402 , 590334 , 595423 , 595427 , 600279 , 671701 , 678625 , 683272 , 693340 , 730649 , 735995 , 736865 , 740714 , 741170 , 741389 , 766846 , 771658 , 773262 , 796598 );
Copy
13.31 ms (7.45%)
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
741389
543750
537982
736865
595427
595423
683272
546664
476655
440728
451518
493341
455067
442922
478395
470108
474170
501225
392486
735995
451175
537454
693340
730649
741170
678625
796598
505561
543570
766846
455118
771658
507435
590334
474310
477634
458249
466453
456908
671701
740714
436692
512283
514694
517349
501801
512305
558839
460295
455019
487808
491947
516179
485359
491962
773262
473940
512972
477941
474800
455049
456299
524754
600279
504057
581402
]
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 (741389 , 543750 , 537982 , 736865 , 595427 , 595423 , 683272 , 546664 , 476655 , 440728 , 451518 , 493341 , 455067 , 442922 , 478395 , 470108 , 474170 , 501225 , 392486 , 735995 , 451175 , 537454 , 693340 , 730649 , 741170 , 678625 , 796598 , 505561 , 543570 , 766846 , 455118 , 771658 , 507435 , 590334 , 474310 , 477634 , 458249 , 466453 , 456908 , 671701 , 740714 , 436692 , 512283 , 514694 , 517349 , 501801 , 512305 , 558839 , 460295 , 455019 , 487808 , 491947 , 516179 , 485359 , 491962 , 773262 , 473940 , 512972 , 477941 , 474800 , 455049 , 456299 , 524754 , 600279 , 504057 , 581402 );
Copy
2.73 ms (1.53%)
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
392486
436692
440728
442922
451175
451518
455019
455049
455067
455118
456299
456908
458249
460295
466453
470108
473940
474170
474310
474800
476655
477634
477941
478395
485359
487808
491947
491962
493341
501225
501801
504057
505561
507435
512283
512305
512972
514694
516179
517349
524754
537454
537982
543570
543750
546664
558839
581402
590334
595423
595427
600279
671701
678625
683272
693340
730649
735995
736865
740714
741170
741389
766846
771658
773262
796598
]
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 (392486 , 436692 , 440728 , 442922 , 451175 , 451518 , 455019 , 455049 , 455067 , 455118 , 456299 , 456908 , 458249 , 460295 , 466453 , 470108 , 473940 , 474170 , 474310 , 474800 , 476655 , 477634 , 477941 , 478395 , 485359 , 487808 , 491947 , 491962 , 493341 , 501225 , 501801 , 504057 , 505561 , 507435 , 512283 , 512305 , 512972 , 514694 , 516179 , 517349 , 524754 , 537454 , 537982 , 543570 , 543750 , 546664 , 558839 , 581402 , 590334 , 595423 , 595427 , 600279 , 671701 , 678625 , 683272 , 693340 , 730649 , 735995 , 736865 , 740714 , 741170 , 741389 , 766846 , 771658 , 773262 , 796598 );
Copy