119.55 ms (69.61%)
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
395563
411449
412419
429810
438711
446418
447670
452277
453992
458182
458183
459202
459433
460026
460693
462144
462564
476022
479217
479273
479520
479863
479889
496527
500497
501203
507184
507310
514659
514661
515645
515709
517372
519927
525547
536154
545216
557027
558441
578631
583723
584197
586554
590139
591415
599292
603644
614720
618596
622114
624110
636360
641901
641910
653432
654270
666406
671235
705511
712278
718695
720241
720298
721109
727799
733204
753496
]
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 (395563 , 411449 , 412419 , 429810 , 438711 , 446418 , 447670 , 452277 , 453992 , 458182 , 458183 , 459202 , 459433 , 460026 , 460693 , 462144 , 462564 , 476022 , 479217 , 479273 , 479520 , 479863 , 479889 , 496527 , 500497 , 501203 , 507184 , 507310 , 514659 , 514661 , 515645 , 515709 , 517372 , 519927 , 525547 , 536154 , 545216 , 557027 , 558441 , 578631 , 583723 , 584197 , 586554 , 590139 , 591415 , 599292 , 603644 , 614720 , 618596 , 622114 , 624110 , 636360 , 641901 , 641910 , 653432 , 654270 , 666406 , 671235 , 705511 , 712278 , 718695 , 720241 , 720298 , 721109 , 727799 , 733204 , 753496 );
Copy
13.63 ms (7.94%)
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
653432
603644
712278
460026
654270
636360
453992
446418
459202
479273
411449
479889
671235
727799
507184
452277
705511
590139
438711
479863
536154
753496
479217
666406
479520
462144
462564
459433
557027
599292
447670
525547
584197
622114
721109
496527
720241
460693
458182
515709
501203
500497
641901
429810
514659
514661
624110
517372
507310
618596
519927
395563
412419
641910
545216
458183
515645
733204
718695
720298
558441
586554
614720
578631
476022
583723
591415
]
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 (653432 , 603644 , 712278 , 460026 , 654270 , 636360 , 453992 , 446418 , 459202 , 479273 , 411449 , 479889 , 671235 , 727799 , 507184 , 452277 , 705511 , 590139 , 438711 , 479863 , 536154 , 753496 , 479217 , 666406 , 479520 , 462144 , 462564 , 459433 , 557027 , 599292 , 447670 , 525547 , 584197 , 622114 , 721109 , 496527 , 720241 , 460693 , 458182 , 515709 , 501203 , 500497 , 641901 , 429810 , 514659 , 514661 , 624110 , 517372 , 507310 , 618596 , 519927 , 395563 , 412419 , 641910 , 545216 , 458183 , 515645 , 733204 , 718695 , 720298 , 558441 , 586554 , 614720 , 578631 , 476022 , 583723 , 591415 );
Copy
2.63 ms (1.53%)
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
395563
411449
412419
429810
438711
446418
447670
452277
453992
458182
458183
459202
459433
460026
460693
462144
462564
476022
479217
479273
479520
479863
479889
496527
500497
501203
507184
507310
514659
514661
515645
515709
517372
519927
525547
536154
545216
557027
558441
578631
583723
584197
586554
590139
591415
599292
603644
614720
618596
622114
624110
636360
641901
641910
653432
654270
666406
671235
705511
712278
718695
720241
720298
721109
727799
733204
753496
]
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 (395563 , 411449 , 412419 , 429810 , 438711 , 446418 , 447670 , 452277 , 453992 , 458182 , 458183 , 459202 , 459433 , 460026 , 460693 , 462144 , 462564 , 476022 , 479217 , 479273 , 479520 , 479863 , 479889 , 496527 , 500497 , 501203 , 507184 , 507310 , 514659 , 514661 , 515645 , 515709 , 517372 , 519927 , 525547 , 536154 , 545216 , 557027 , 558441 , 578631 , 583723 , 584197 , 586554 , 590139 , 591415 , 599292 , 603644 , 614720 , 618596 , 622114 , 624110 , 636360 , 641901 , 641910 , 653432 , 654270 , 666406 , 671235 , 705511 , 712278 , 718695 , 720241 , 720298 , 721109 , 727799 , 733204 , 753496 );
Copy