111.42 ms (70.35%)
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
389473
392423
393396
395269
395406
395446
395489
396368
396450
396540
396565
396741
396742
396746
399255
399303
399310
399320
399338
399345
399396
399408
399411
399415
399668
399689
399722
399754
403988
404418
414621
417482
417877
417889
417893
428420
429424
435624
445513
446344
463073
466340
468655
468788
492479
513660
517849
518493
525345
525864
527452
528836
557526
573309
578400
584731
604595
605521
611571
624799
624802
722480
810705
814120
814130
817828
817851
823538
]
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 (389473 , 392423 , 393396 , 395269 , 395406 , 395446 , 395489 , 396368 , 396450 , 396540 , 396565 , 396741 , 396742 , 396746 , 399255 , 399303 , 399310 , 399320 , 399338 , 399345 , 399396 , 399408 , 399411 , 399415 , 399668 , 399689 , 399722 , 399754 , 403988 , 404418 , 414621 , 417482 , 417877 , 417889 , 417893 , 428420 , 429424 , 435624 , 445513 , 446344 , 463073 , 466340 , 468655 , 468788 , 492479 , 513660 , 517849 , 518493 , 525345 , 525864 , 527452 , 528836 , 557526 , 573309 , 578400 , 584731 , 604595 , 605521 , 611571 , 624799 , 624802 , 722480 , 810705 , 814120 , 814130 , 817828 , 817851 , 823538 );
Copy
16.21 ms (10.23%)
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
578400
817851
817828
810705
814120
722480
814130
584731
573309
624799
624802
513660
611571
823538
399310
404418
399320
403988
399754
396540
393396
399408
395269
399722
468788
525345
399338
399415
399303
399255
399345
399411
417893
396368
399689
392423
395489
389473
399396
399668
417877
396565
396450
428420
492479
528836
396741
466340
604595
396746
395406
395446
527452
435624
446344
463073
429424
445513
517849
417889
414621
396742
518493
468655
557526
417482
525864
605521
]
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 (578400 , 817851 , 817828 , 810705 , 814120 , 722480 , 814130 , 584731 , 573309 , 624799 , 624802 , 513660 , 611571 , 823538 , 399310 , 404418 , 399320 , 403988 , 399754 , 396540 , 393396 , 399408 , 395269 , 399722 , 468788 , 525345 , 399338 , 399415 , 399303 , 399255 , 399345 , 399411 , 417893 , 396368 , 399689 , 392423 , 395489 , 389473 , 399396 , 399668 , 417877 , 396565 , 396450 , 428420 , 492479 , 528836 , 396741 , 466340 , 604595 , 396746 , 395406 , 395446 , 527452 , 435624 , 446344 , 463073 , 429424 , 445513 , 517849 , 417889 , 414621 , 396742 , 518493 , 468655 , 557526 , 417482 , 525864 , 605521 );
Copy
2.71 ms (1.71%)
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
389473
392423
393396
395269
395406
395446
395489
396368
396450
396540
396565
396741
396742
396746
399255
399303
399310
399320
399338
399345
399396
399408
399411
399415
399668
399689
399722
399754
403988
404418
414621
417482
417877
417889
417893
428420
429424
435624
445513
446344
463073
466340
468655
468788
492479
513660
517849
518493
525345
525864
527452
528836
557526
573309
578400
584731
604595
605521
611571
624799
624802
722480
810705
814120
814130
817828
817851
823538
]
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 (389473 , 392423 , 393396 , 395269 , 395406 , 395446 , 395489 , 396368 , 396450 , 396540 , 396565 , 396741 , 396742 , 396746 , 399255 , 399303 , 399310 , 399320 , 399338 , 399345 , 399396 , 399408 , 399411 , 399415 , 399668 , 399689 , 399722 , 399754 , 403988 , 404418 , 414621 , 417482 , 417877 , 417889 , 417893 , 428420 , 429424 , 435624 , 445513 , 446344 , 463073 , 466340 , 468655 , 468788 , 492479 , 513660 , 517849 , 518493 , 525345 , 525864 , 527452 , 528836 , 557526 , 573309 , 578400 , 584731 , 604595 , 605521 , 611571 , 624799 , 624802 , 722480 , 810705 , 814120 , 814130 , 817828 , 817851 , 823538 );
Copy