86.91 ms (49.03%)
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
188263
188453
391578
391614
395660
395925
401843
407793
407797
410254
443716
445644
452377
452415
453149
454191
454192
454209
465339
465549
466127
466134
466191
466426
466943
466994
476251
483375
483388
484668
484689
484699
484737
490921
499077
506094
506834
515927
533586
537833
542947
545943
546114
546935
549225
551111
561356
563048
563057
563069
563150
563163
563232
563233
565649
593347
721487
724641
725399
728288
731805
742603
751495
752703
756869
782210
790982
805122
808000
]
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 (188263 , 188453 , 391578 , 391614 , 395660 , 395925 , 401843 , 407793 , 407797 , 410254 , 443716 , 445644 , 452377 , 452415 , 453149 , 454191 , 454192 , 454209 , 465339 , 465549 , 466127 , 466134 , 466191 , 466426 , 466943 , 466994 , 476251 , 483375 , 483388 , 484668 , 484689 , 484699 , 484737 , 490921 , 499077 , 506094 , 506834 , 515927 , 533586 , 537833 , 542947 , 545943 , 546114 , 546935 , 549225 , 551111 , 561356 , 563048 , 563057 , 563069 , 563150 , 563163 , 563232 , 563233 , 565649 , 593347 , 721487 , 724641 , 725399 , 728288 , 731805 , 742603 , 751495 , 752703 , 756869 , 782210 , 790982 , 805122 , 808000 );
Copy
13.31 ms (7.51%)
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
537833
395660
549225
546114
542947
790982
395925
391578
407793
188263
782210
724641
808000
742603
731805
751495
725399
563048
721487
515927
752703
499077
506094
563069
805122
756869
188453
401843
452377
546935
452415
565649
391614
484689
466426
443716
563057
563150
563233
561356
465339
490921
506834
563232
466127
454192
466134
563163
483375
551111
533586
593347
466943
728288
454209
484699
407797
466191
476251
445644
454191
453149
465549
545943
484668
484737
483388
466994
410254
]
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 (537833 , 395660 , 549225 , 546114 , 542947 , 790982 , 395925 , 391578 , 407793 , 188263 , 782210 , 724641 , 808000 , 742603 , 731805 , 751495 , 725399 , 563048 , 721487 , 515927 , 752703 , 499077 , 506094 , 563069 , 805122 , 756869 , 188453 , 401843 , 452377 , 546935 , 452415 , 565649 , 391614 , 484689 , 466426 , 443716 , 563057 , 563150 , 563233 , 561356 , 465339 , 490921 , 506834 , 563232 , 466127 , 454192 , 466134 , 563163 , 483375 , 551111 , 533586 , 593347 , 466943 , 728288 , 454209 , 484699 , 407797 , 466191 , 476251 , 445644 , 454191 , 453149 , 465549 , 545943 , 484668 , 484737 , 483388 , 466994 , 410254 );
Copy
2.89 ms (1.63%)
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
188263
188453
391578
391614
395660
395925
401843
407793
407797
410254
443716
445644
452377
452415
453149
454191
454192
454209
465339
465549
466127
466134
466191
466426
466943
466994
476251
483375
483388
484668
484689
484699
484737
490921
499077
506094
506834
515927
533586
537833
542947
545943
546114
546935
549225
551111
561356
563048
563057
563069
563150
563163
563232
563233
565649
593347
721487
724641
725399
728288
731805
742603
751495
752703
756869
782210
790982
805122
808000
]
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 (188263 , 188453 , 391578 , 391614 , 395660 , 395925 , 401843 , 407793 , 407797 , 410254 , 443716 , 445644 , 452377 , 452415 , 453149 , 454191 , 454192 , 454209 , 465339 , 465549 , 466127 , 466134 , 466191 , 466426 , 466943 , 466994 , 476251 , 483375 , 483388 , 484668 , 484689 , 484699 , 484737 , 490921 , 499077 , 506094 , 506834 , 515927 , 533586 , 537833 , 542947 , 545943 , 546114 , 546935 , 549225 , 551111 , 561356 , 563048 , 563057 , 563069 , 563150 , 563163 , 563232 , 563233 , 565649 , 593347 , 721487 , 724641 , 725399 , 728288 , 731805 , 742603 , 751495 , 752703 , 756869 , 782210 , 790982 , 805122 , 808000 );
Copy