77.34 ms (71.45%)
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
383272
386378
413084
414368
415112
438417
445327
452895
455502
474139
474509
479003
482454
486516
491418
494037
494778
495700
498038
502740
503051
503304
509879
512527
516787
520005
520817
521310
523108
527040
527742
529243
531230
546114
546124
552909
553927
554880
564407
565506
567304
568596
577356
582480
584006
584516
587921
597208
599644
601347
603835
610035
612698
620203
621340
622067
622714
636535
641732
643125
676016
676101
]
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 (383272 , 386378 , 413084 , 414368 , 415112 , 438417 , 445327 , 452895 , 455502 , 474139 , 474509 , 479003 , 482454 , 486516 , 491418 , 494037 , 494778 , 495700 , 498038 , 502740 , 503051 , 503304 , 509879 , 512527 , 516787 , 520005 , 520817 , 521310 , 523108 , 527040 , 527742 , 529243 , 531230 , 546114 , 546124 , 552909 , 553927 , 554880 , 564407 , 565506 , 567304 , 568596 , 577356 , 582480 , 584006 , 584516 , 587921 , 597208 , 599644 , 601347 , 603835 , 610035 , 612698 , 620203 , 621340 , 622067 , 622714 , 636535 , 641732 , 643125 , 676016 , 676101 );
Copy
13.80 ms (12.75%)
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
438417
503304
486516
516787
520817
527040
383272
445327
482454
531230
479003
553927
676101
567304
603835
643125
622714
386378
413084
455502
414368
503051
521310
527742
529243
491418
498038
502740
474509
546124
584516
415112
495700
452895
554880
582480
584006
599644
641732
509879
523108
577356
564407
601347
587921
620203
520005
494778
568596
676016
552909
565506
612698
610035
597208
636535
494037
621340
622067
474139
512527
546114
]
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 (438417 , 503304 , 486516 , 516787 , 520817 , 527040 , 383272 , 445327 , 482454 , 531230 , 479003 , 553927 , 676101 , 567304 , 603835 , 643125 , 622714 , 386378 , 413084 , 455502 , 414368 , 503051 , 521310 , 527742 , 529243 , 491418 , 498038 , 502740 , 474509 , 546124 , 584516 , 415112 , 495700 , 452895 , 554880 , 582480 , 584006 , 599644 , 641732 , 509879 , 523108 , 577356 , 564407 , 601347 , 587921 , 620203 , 520005 , 494778 , 568596 , 676016 , 552909 , 565506 , 612698 , 610035 , 597208 , 636535 , 494037 , 621340 , 622067 , 474139 , 512527 , 546114 );
Copy
3.11 ms (2.88%)
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
383272
386378
413084
414368
415112
438417
445327
452895
455502
474139
474509
479003
482454
486516
491418
494037
494778
495700
498038
502740
503051
503304
509879
512527
516787
520005
520817
521310
523108
527040
527742
529243
531230
546114
546124
552909
553927
554880
564407
565506
567304
568596
577356
582480
584006
584516
587921
597208
599644
601347
603835
610035
612698
620203
621340
622067
622714
636535
641732
643125
676016
676101
]
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 (383272 , 386378 , 413084 , 414368 , 415112 , 438417 , 445327 , 452895 , 455502 , 474139 , 474509 , 479003 , 482454 , 486516 , 491418 , 494037 , 494778 , 495700 , 498038 , 502740 , 503051 , 503304 , 509879 , 512527 , 516787 , 520005 , 520817 , 521310 , 523108 , 527040 , 527742 , 529243 , 531230 , 546114 , 546124 , 552909 , 553927 , 554880 , 564407 , 565506 , 567304 , 568596 , 577356 , 582480 , 584006 , 584516 , 587921 , 597208 , 599644 , 601347 , 603835 , 610035 , 612698 , 620203 , 621340 , 622067 , 622714 , 636535 , 641732 , 643125 , 676016 , 676101 );
Copy