95.78 ms (60.13%)
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
417835
422155
424375
427246
427263
427543
433323
434992
435523
440686
444831
448954
449778
455974
456695
459512
459513
461763
463980
478020
478969
485061
496518
496526
498310
505538
509437
509622
517619
518111
518824
519563
520799
523021
524087
524555
524915
526951
527341
527908
528040
528382
529143
534617
540071
549569
557042
562790
563634
568062
577600
586009
588294
590906
593875
599027
601982
601991
602656
603047
609057
614080
615841
621239
623211
625440
635074
650992
787379
]
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 (417835 , 422155 , 424375 , 427246 , 427263 , 427543 , 433323 , 434992 , 435523 , 440686 , 444831 , 448954 , 449778 , 455974 , 456695 , 459512 , 459513 , 461763 , 463980 , 478020 , 478969 , 485061 , 496518 , 496526 , 498310 , 505538 , 509437 , 509622 , 517619 , 518111 , 518824 , 519563 , 520799 , 523021 , 524087 , 524555 , 524915 , 526951 , 527341 , 527908 , 528040 , 528382 , 529143 , 534617 , 540071 , 549569 , 557042 , 562790 , 563634 , 568062 , 577600 , 586009 , 588294 , 590906 , 593875 , 599027 , 601982 , 601991 , 602656 , 603047 , 609057 , 614080 , 615841 , 621239 , 623211 , 625440 , 635074 , 650992 , 787379 );
Copy
26.46 ms (16.61%)
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
456695
461763
534617
518111
590906
599027
586009
635074
424375
478969
518824
524087
509622
527341
577600
623211
434992
496518
529143
496526
557042
549569
593875
422155
433323
787379
601991
528040
609057
498310
602656
615841
509437
520799
505538
459513
448954
459512
485061
528382
523021
563634
449778
601982
526951
519563
588294
444831
435523
517619
650992
427263
427543
568062
603047
621239
524555
440686
417835
562790
524915
463980
478020
455974
427246
614080
625440
527908
540071
]
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 (456695 , 461763 , 534617 , 518111 , 590906 , 599027 , 586009 , 635074 , 424375 , 478969 , 518824 , 524087 , 509622 , 527341 , 577600 , 623211 , 434992 , 496518 , 529143 , 496526 , 557042 , 549569 , 593875 , 422155 , 433323 , 787379 , 601991 , 528040 , 609057 , 498310 , 602656 , 615841 , 509437 , 520799 , 505538 , 459513 , 448954 , 459512 , 485061 , 528382 , 523021 , 563634 , 449778 , 601982 , 526951 , 519563 , 588294 , 444831 , 435523 , 517619 , 650992 , 427263 , 427543 , 568062 , 603047 , 621239 , 524555 , 440686 , 417835 , 562790 , 524915 , 463980 , 478020 , 455974 , 427246 , 614080 , 625440 , 527908 , 540071 );
Copy
3.76 ms (2.36%)
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
417835
422155
424375
427246
427263
427543
433323
434992
435523
440686
444831
448954
449778
455974
456695
459512
459513
461763
463980
478020
478969
485061
496518
496526
498310
505538
509437
509622
517619
518111
518824
519563
520799
523021
524087
524555
524915
526951
527341
527908
528040
528382
529143
534617
540071
549569
557042
562790
563634
568062
577600
586009
588294
590906
593875
599027
601982
601991
602656
603047
609057
614080
615841
621239
623211
625440
635074
650992
787379
]
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 (417835 , 422155 , 424375 , 427246 , 427263 , 427543 , 433323 , 434992 , 435523 , 440686 , 444831 , 448954 , 449778 , 455974 , 456695 , 459512 , 459513 , 461763 , 463980 , 478020 , 478969 , 485061 , 496518 , 496526 , 498310 , 505538 , 509437 , 509622 , 517619 , 518111 , 518824 , 519563 , 520799 , 523021 , 524087 , 524555 , 524915 , 526951 , 527341 , 527908 , 528040 , 528382 , 529143 , 534617 , 540071 , 549569 , 557042 , 562790 , 563634 , 568062 , 577600 , 586009 , 588294 , 590906 , 593875 , 599027 , 601982 , 601991 , 602656 , 603047 , 609057 , 614080 , 615841 , 621239 , 623211 , 625440 , 635074 , 650992 , 787379 );
Copy