72.61 ms (67.43%)
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
381828
383436
395565
400434
419198
420317
422802
434608
446988
454215
462961
463771
467233
470842
482239
483477
487742
489131
494322
502742
512221
513480
518870
526727
531090
531730
552534
553442
563345
563443
566514
577515
584295
590398
591088
591368
592906
599816
602573
618326
623519
623615
626609
627007
629990
646911
675589
683945
684203
701000
701344
713367
714380
724821
736507
746471
749081
757586
788039
789223
790863
800074
809899
810585
812299
826713
827569
]
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 (381828 , 383436 , 395565 , 400434 , 419198 , 420317 , 422802 , 434608 , 446988 , 454215 , 462961 , 463771 , 467233 , 470842 , 482239 , 483477 , 487742 , 489131 , 494322 , 502742 , 512221 , 513480 , 518870 , 526727 , 531090 , 531730 , 552534 , 553442 , 563345 , 563443 , 566514 , 577515 , 584295 , 590398 , 591088 , 591368 , 592906 , 599816 , 602573 , 618326 , 623519 , 623615 , 626609 , 627007 , 629990 , 646911 , 675589 , 683945 , 684203 , 701000 , 701344 , 713367 , 714380 , 724821 , 736507 , 746471 , 749081 , 757586 , 788039 , 789223 , 790863 , 800074 , 809899 , 810585 , 812299 , 826713 , 827569 );
Copy
6.56 ms (6.09%)
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
757586
531730
828101
602573
599816
684203
788039
623615
646911
736507
724821
812299
584295
701000
746471
701344
577515
789223
826713
462961
552534
381828
463771
400434
800074
827569
809899
494322
623519
713367
810585
566514
683945
749081
483477
489131
512221
626609
383436
563345
422802
591088
420317
592906
470842
553442
395565
419198
629990
531090
627007
482239
590398
591368
502742
790863
487742
714380
446988
675589
563443
467233
434608
518870
526727
454215
618326
513480
]
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 (757586 , 531730 , 828101 , 602573 , 599816 , 684203 , 788039 , 623615 , 646911 , 736507 , 724821 , 812299 , 584295 , 701000 , 746471 , 701344 , 577515 , 789223 , 826713 , 462961 , 552534 , 381828 , 463771 , 400434 , 800074 , 827569 , 809899 , 494322 , 623519 , 713367 , 810585 , 566514 , 683945 , 749081 , 483477 , 489131 , 512221 , 626609 , 383436 , 563345 , 422802 , 591088 , 420317 , 592906 , 470842 , 553442 , 395565 , 419198 , 629990 , 531090 , 627007 , 482239 , 590398 , 591368 , 502742 , 790863 , 487742 , 714380 , 446988 , 675589 , 563443 , 467233 , 434608 , 518870 , 526727 , 454215 , 618326 , 513480 );
Copy
1.77 ms (1.64%)
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
381828
383436
395565
400434
419198
420317
422802
434608
446988
454215
462961
463771
467233
470842
482239
483477
487742
489131
494322
502742
512221
513480
518870
526727
531090
531730
552534
553442
563345
563443
566514
577515
584295
590398
591088
591368
592906
599816
602573
618326
623519
623615
626609
627007
629990
646911
675589
683945
684203
701000
701344
713367
714380
724821
736507
746471
749081
757586
788039
789223
790863
800074
809899
810585
812299
826713
827569
]
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 (381828 , 383436 , 395565 , 400434 , 419198 , 420317 , 422802 , 434608 , 446988 , 454215 , 462961 , 463771 , 467233 , 470842 , 482239 , 483477 , 487742 , 489131 , 494322 , 502742 , 512221 , 513480 , 518870 , 526727 , 531090 , 531730 , 552534 , 553442 , 563345 , 563443 , 566514 , 577515 , 584295 , 590398 , 591088 , 591368 , 592906 , 599816 , 602573 , 618326 , 623519 , 623615 , 626609 , 627007 , 629990 , 646911 , 675589 , 683945 , 684203 , 701000 , 701344 , 713367 , 714380 , 724821 , 736507 , 746471 , 749081 , 757586 , 788039 , 789223 , 790863 , 800074 , 809899 , 810585 , 812299 , 826713 , 827569 );
Copy