73.27 ms (62.25%)
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
416893
418018
419912
419914
424398
438033
441543
441631
441640
444313
450794
450941
453830
457728
459538
461379
463527
485353
486962
489790
491624
491818
523053
524205
539353
553929
558752
563690
569025
579720
593245
598637
598921
599450
605396
607657
639218
735640
759145
764367
764371
764381
772204
774343
774349
774350
778523
779310
785533
787449
787475
791317
791318
791950
792456
793050
796248
796277
803695
808710
809737
813271
819063
819097
819469
820443
820837
821609
828103
]
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 (416893 , 418018 , 419912 , 419914 , 424398 , 438033 , 441543 , 441631 , 441640 , 444313 , 450794 , 450941 , 453830 , 457728 , 459538 , 461379 , 463527 , 485353 , 486962 , 489790 , 491624 , 491818 , 523053 , 524205 , 539353 , 553929 , 558752 , 563690 , 569025 , 579720 , 593245 , 598637 , 598921 , 599450 , 605396 , 607657 , 639218 , 735640 , 759145 , 764367 , 764371 , 764381 , 772204 , 774343 , 774349 , 774350 , 778523 , 779310 , 785533 , 787449 , 787475 , 791317 , 791318 , 791950 , 792456 , 793050 , 796248 , 796277 , 803695 , 808710 , 809737 , 813271 , 819063 , 819097 , 819469 , 820443 , 820837 , 821609 , 828103 );
Copy
8.98 ms (7.63%)
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
796277
768311
808710
558752
553929
785533
759145
764371
416893
569025
764381
764367
639218
791317
774349
803695
793050
735640
772204
792456
778523
791318
457728
774350
809737
813271
791950
491624
774343
579720
563690
450794
539353
607657
796248
779310
489790
598637
523053
820443
828103
450941
819063
787449
598921
419912
424398
819097
491818
821609
787475
819469
419914
438033
820837
486962
441543
593245
461379
444313
453830
459538
599450
524205
605396
485353
418018
463527
441640
441631
]
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 (796277 , 768311 , 808710 , 558752 , 553929 , 785533 , 759145 , 764371 , 416893 , 569025 , 764381 , 764367 , 639218 , 791317 , 774349 , 803695 , 793050 , 735640 , 772204 , 792456 , 778523 , 791318 , 457728 , 774350 , 809737 , 813271 , 791950 , 491624 , 774343 , 579720 , 563690 , 450794 , 539353 , 607657 , 796248 , 779310 , 489790 , 598637 , 523053 , 820443 , 828103 , 450941 , 819063 , 787449 , 598921 , 419912 , 424398 , 819097 , 491818 , 821609 , 787475 , 819469 , 419914 , 438033 , 820837 , 486962 , 441543 , 593245 , 461379 , 444313 , 453830 , 459538 , 599450 , 524205 , 605396 , 485353 , 418018 , 463527 , 441640 , 441631 );
Copy
2.83 ms (2.40%)
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
416893
418018
419912
419914
424398
438033
441543
441631
441640
444313
450794
450941
453830
457728
459538
461379
463527
485353
486962
489790
491624
491818
523053
524205
539353
553929
558752
563690
569025
579720
593245
598637
598921
599450
605396
607657
639218
735640
759145
764367
764371
764381
772204
774343
774349
774350
778523
779310
785533
787449
787475
791317
791318
791950
792456
793050
796248
796277
803695
808710
809737
813271
819063
819097
819469
820443
820837
821609
828103
]
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 (416893 , 418018 , 419912 , 419914 , 424398 , 438033 , 441543 , 441631 , 441640 , 444313 , 450794 , 450941 , 453830 , 457728 , 459538 , 461379 , 463527 , 485353 , 486962 , 489790 , 491624 , 491818 , 523053 , 524205 , 539353 , 553929 , 558752 , 563690 , 569025 , 579720 , 593245 , 598637 , 598921 , 599450 , 605396 , 607657 , 639218 , 735640 , 759145 , 764367 , 764371 , 764381 , 772204 , 774343 , 774349 , 774350 , 778523 , 779310 , 785533 , 787449 , 787475 , 791317 , 791318 , 791950 , 792456 , 793050 , 796248 , 796277 , 803695 , 808710 , 809737 , 813271 , 819063 , 819097 , 819469 , 820443 , 820837 , 821609 , 828103 );
Copy