116.87 ms (74.30%)
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
208999
387304
387374
413044
422582
454292
460054
460969
467705
471137
475804
492414
499485
512215
512224
512680
515702
515706
515884
516452
517997
518972
519903
519907
519909
519914
519956
520151
520403
521230
525176
525192
525193
525197
525605
528593
530345
536214
536647
537758
547569
550745
550748
550768
551984
551995
552000
552006
552933
554420
559856
559886
564595
565974
566073
576536
601159
623519
623521
623697
640685
650810
652127
673053
712144
712187
712222
714119
755824
758302
]
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 (208999 , 387304 , 387374 , 413044 , 422582 , 454292 , 460054 , 460969 , 467705 , 471137 , 475804 , 492414 , 499485 , 512215 , 512224 , 512680 , 515702 , 515706 , 515884 , 516452 , 517997 , 518972 , 519903 , 519907 , 519909 , 519914 , 519956 , 520151 , 520403 , 521230 , 525176 , 525192 , 525193 , 525197 , 525605 , 528593 , 530345 , 536214 , 536647 , 537758 , 547569 , 550745 , 550748 , 550768 , 551984 , 551995 , 552000 , 552006 , 552933 , 554420 , 559856 , 559886 , 564595 , 565974 , 566073 , 576536 , 601159 , 623519 , 623521 , 623697 , 640685 , 650810 , 652127 , 673053 , 712144 , 712187 , 712222 , 714119 , 755824 , 758302 );
Copy
11.40 ms (7.25%)
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
537758
515706
576536
712222
652127
559856
515702
525192
755824
387374
530345
387304
515884
673053
758302
521230
499485
528593
640685
516452
564595
552000
519956
208999
552933
512215
551995
550748
552006
712187
650810
512224
550768
492414
519914
525193
550745
623519
623697
475804
519907
519909
460054
714119
623521
559886
712144
520403
454292
566073
551984
525197
525605
517997
565974
601159
467705
520151
518972
525176
536647
471137
422582
512680
536214
554420
519903
547569
413044
460969
]
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 (537758 , 515706 , 576536 , 712222 , 652127 , 559856 , 515702 , 525192 , 755824 , 387374 , 530345 , 387304 , 515884 , 673053 , 758302 , 521230 , 499485 , 528593 , 640685 , 516452 , 564595 , 552000 , 519956 , 208999 , 552933 , 512215 , 551995 , 550748 , 552006 , 712187 , 650810 , 512224 , 550768 , 492414 , 519914 , 525193 , 550745 , 623519 , 623697 , 475804 , 519907 , 519909 , 460054 , 714119 , 623521 , 559886 , 712144 , 520403 , 454292 , 566073 , 551984 , 525197 , 525605 , 517997 , 565974 , 601159 , 467705 , 520151 , 518972 , 525176 , 536647 , 471137 , 422582 , 512680 , 536214 , 554420 , 519903 , 547569 , 413044 , 460969 );
Copy
3.31 ms (2.11%)
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
208999
387304
387374
413044
422582
454292
460054
460969
467705
471137
475804
492414
499485
512215
512224
512680
515702
515706
515884
516452
517997
518972
519903
519907
519909
519914
519956
520151
520403
521230
525176
525192
525193
525197
525605
528593
530345
536214
536647
537758
547569
550745
550748
550768
551984
551995
552000
552006
552933
554420
559856
559886
564595
565974
566073
576536
601159
623519
623521
623697
640685
650810
652127
673053
712144
712187
712222
714119
755824
758302
]
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 (208999 , 387304 , 387374 , 413044 , 422582 , 454292 , 460054 , 460969 , 467705 , 471137 , 475804 , 492414 , 499485 , 512215 , 512224 , 512680 , 515702 , 515706 , 515884 , 516452 , 517997 , 518972 , 519903 , 519907 , 519909 , 519914 , 519956 , 520151 , 520403 , 521230 , 525176 , 525192 , 525193 , 525197 , 525605 , 528593 , 530345 , 536214 , 536647 , 537758 , 547569 , 550745 , 550748 , 550768 , 551984 , 551995 , 552000 , 552006 , 552933 , 554420 , 559856 , 559886 , 564595 , 565974 , 566073 , 576536 , 601159 , 623519 , 623521 , 623697 , 640685 , 650810 , 652127 , 673053 , 712144 , 712187 , 712222 , 714119 , 755824 , 758302 );
Copy