78.00 ms (69.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
393481
397331
430018
430824
430827
430828
430834
430839
431046
431333
431352
431361
434456
441013
441024
445416
446337
446518
447655
464651
469694
474553
486301
487138
487717
489674
491478
491678
494339
494779
499446
511617
512217
519087
521783
523509
545621
551982
557243
560198
567153
567166
569778
571029
572038
580978
582815
597186
597231
599921
600026
603713
607071
615574
632256
642662
646007
651938
663308
676956
681041
714511
761004
821605
]
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 (393481 , 397331 , 430018 , 430824 , 430827 , 430828 , 430834 , 430839 , 431046 , 431333 , 431352 , 431361 , 434456 , 441013 , 441024 , 445416 , 446337 , 446518 , 447655 , 464651 , 469694 , 474553 , 486301 , 487138 , 487717 , 489674 , 491478 , 491678 , 494339 , 494779 , 499446 , 511617 , 512217 , 519087 , 521783 , 523509 , 545621 , 551982 , 557243 , 560198 , 567153 , 567166 , 569778 , 571029 , 572038 , 580978 , 582815 , 597186 , 597231 , 599921 , 600026 , 603713 , 607071 , 615574 , 632256 , 642662 , 646007 , 651938 , 663308 , 676956 , 681041 , 714511 , 761004 , 821605 );
Copy
14.19 ms (12.71%)
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
446518
474553
512217
464651
560198
580978
582815
569778
607071
761004
632256
441013
469694
494339
486301
487138
511617
397331
434456
821605
446337
557243
572038
551982
571029
567153
599921
430839
431333
491478
489674
523509
393481
431046
431361
521783
567166
545621
646007
663308
681041
714511
600026
603713
447655
430834
491678
499446
494779
676956
597231
430828
431352
430824
519087
430827
445416
651938
597186
615574
441024
487717
642662
430018
]
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 (446518 , 474553 , 512217 , 464651 , 560198 , 580978 , 582815 , 569778 , 607071 , 761004 , 632256 , 441013 , 469694 , 494339 , 486301 , 487138 , 511617 , 397331 , 434456 , 821605 , 446337 , 557243 , 572038 , 551982 , 571029 , 567153 , 599921 , 430839 , 431333 , 491478 , 489674 , 523509 , 393481 , 431046 , 431361 , 521783 , 567166 , 545621 , 646007 , 663308 , 681041 , 714511 , 600026 , 603713 , 447655 , 430834 , 491678 , 499446 , 494779 , 676956 , 597231 , 430828 , 431352 , 430824 , 519087 , 430827 , 445416 , 651938 , 597186 , 615574 , 441024 , 487717 , 642662 , 430018 );
Copy
2.22 ms (1.99%)
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
393481
397331
430018
430824
430827
430828
430834
430839
431046
431333
431352
431361
434456
441013
441024
445416
446337
446518
447655
464651
469694
474553
486301
487138
487717
489674
491478
491678
494339
494779
499446
511617
512217
519087
521783
523509
545621
551982
557243
560198
567153
567166
569778
571029
572038
580978
582815
597186
597231
599921
600026
603713
607071
615574
632256
642662
646007
651938
663308
676956
681041
714511
761004
821605
]
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 (393481 , 397331 , 430018 , 430824 , 430827 , 430828 , 430834 , 430839 , 431046 , 431333 , 431352 , 431361 , 434456 , 441013 , 441024 , 445416 , 446337 , 446518 , 447655 , 464651 , 469694 , 474553 , 486301 , 487138 , 487717 , 489674 , 491478 , 491678 , 494339 , 494779 , 499446 , 511617 , 512217 , 519087 , 521783 , 523509 , 545621 , 551982 , 557243 , 560198 , 567153 , 567166 , 569778 , 571029 , 572038 , 580978 , 582815 , 597186 , 597231 , 599921 , 600026 , 603713 , 607071 , 615574 , 632256 , 642662 , 646007 , 651938 , 663308 , 676956 , 681041 , 714511 , 761004 , 821605 );
Copy