78.99 ms (23.74%)
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
420924
427097
433930
437137
444309
446988
448687
449398
449450
449635
450941
453187
457058
460771
463054
463514
463628
463630
476598
477789
478186
489729
497104
502974
507669
508741
512374
513427
520105
520620
521617
523499
525179
527843
528005
528171
529177
532377
540247
543346
543693
544596
550718
558990
559936
564378
571333
572358
573339
577474
579754
581715
584634
596069
597923
599725
599730
601335
604050
619192
619527
621655
623727
625547
676591
807407
]
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 (420924 , 427097 , 433930 , 437137 , 444309 , 446988 , 448687 , 449398 , 449450 , 449635 , 450941 , 453187 , 457058 , 460771 , 463054 , 463514 , 463628 , 463630 , 476598 , 477789 , 478186 , 489729 , 497104 , 502974 , 507669 , 508741 , 512374 , 513427 , 520105 , 520620 , 521617 , 523499 , 525179 , 527843 , 528005 , 528171 , 529177 , 532377 , 540247 , 543346 , 543693 , 544596 , 550718 , 558990 , 559936 , 564378 , 571333 , 572358 , 573339 , 577474 , 579754 , 581715 , 584634 , 596069 , 597923 , 599725 , 599730 , 601335 , 604050 , 619192 , 619527 , 621655 , 623727 , 625547 , 676591 , 807407 );
Copy
12.97 ms (3.90%)
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
573339
577474
558990
559936
544596
564378
572358
599725
599730
625547
807407
449398
453187
463054
463514
463630
420924
476598
444309
450941
478186
525179
520105
513427
437137
433930
448687
477789
457058
497104
540247
543346
581715
550718
597923
427097
446988
512374
529177
502974
528005
520620
521617
528171
676591
604050
596069
507669
489729
532377
543693
463628
449635
460771
571333
579754
601335
619192
584634
621655
623727
449450
508741
527843
523499
619527
]
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 (573339 , 577474 , 558990 , 559936 , 544596 , 564378 , 572358 , 599725 , 599730 , 625547 , 807407 , 449398 , 453187 , 463054 , 463514 , 463630 , 420924 , 476598 , 444309 , 450941 , 478186 , 525179 , 520105 , 513427 , 437137 , 433930 , 448687 , 477789 , 457058 , 497104 , 540247 , 543346 , 581715 , 550718 , 597923 , 427097 , 446988 , 512374 , 529177 , 502974 , 528005 , 520620 , 521617 , 528171 , 676591 , 604050 , 596069 , 507669 , 489729 , 532377 , 543693 , 463628 , 449635 , 460771 , 571333 , 579754 , 601335 , 619192 , 584634 , 621655 , 623727 , 449450 , 508741 , 527843 , 523499 , 619527 );
Copy
3.39 ms (1.02%)
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
420924
427097
433930
437137
444309
446988
448687
449398
449450
449635
450941
453187
457058
460771
463054
463514
463628
463630
476598
477789
478186
489729
497104
502974
507669
508741
512374
513427
520105
520620
521617
523499
525179
527843
528005
528171
529177
532377
540247
543346
543693
544596
550718
558990
559936
564378
571333
572358
573339
577474
579754
581715
584634
596069
597923
599725
599730
601335
604050
619192
619527
621655
623727
625547
676591
807407
]
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 (420924 , 427097 , 433930 , 437137 , 444309 , 446988 , 448687 , 449398 , 449450 , 449635 , 450941 , 453187 , 457058 , 460771 , 463054 , 463514 , 463628 , 463630 , 476598 , 477789 , 478186 , 489729 , 497104 , 502974 , 507669 , 508741 , 512374 , 513427 , 520105 , 520620 , 521617 , 523499 , 525179 , 527843 , 528005 , 528171 , 529177 , 532377 , 540247 , 543346 , 543693 , 544596 , 550718 , 558990 , 559936 , 564378 , 571333 , 572358 , 573339 , 577474 , 579754 , 581715 , 584634 , 596069 , 597923 , 599725 , 599730 , 601335 , 604050 , 619192 , 619527 , 621655 , 623727 , 625547 , 676591 , 807407 );
Copy