83.09 ms (71.22%)
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
75762
427171
429108
429591
434936
449847
451877
463286
472944
481566
487826
493851
505619
505634
515550
524608
527391
536084
536142
536205
540175
540410
540703
540748
541026
545480
550716
551558
552346
554635
556722
560181
564561
569436
571729
572019
575436
581216
586118
597181
600026
602872
610243
616201
627461
627773
636193
646007
652131
665909
677861
693244
695544
705221
706801
715654
717756
736470
746561
749829
750189
752787
770396
780292
783052
791773
810531
810549
813449
818312
]
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 (75762 , 427171 , 429108 , 429591 , 434936 , 449847 , 451877 , 463286 , 472944 , 481566 , 487826 , 493851 , 505619 , 505634 , 515550 , 524608 , 527391 , 536084 , 536142 , 536205 , 540175 , 540410 , 540703 , 540748 , 541026 , 545480 , 550716 , 551558 , 552346 , 554635 , 556722 , 560181 , 564561 , 569436 , 571729 , 572019 , 575436 , 581216 , 586118 , 597181 , 600026 , 602872 , 610243 , 616201 , 627461 , 627773 , 636193 , 646007 , 652131 , 665909 , 677861 , 693244 , 695544 , 705221 , 706801 , 715654 , 717756 , 736470 , 746561 , 749829 , 750189 , 752787 , 770396 , 780292 , 783052 , 791773 , 810531 , 810549 , 813449 , 818312 );
Copy
12.61 ms (10.81%)
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
541026
818312
746561
551558
636193
705221
627461
610243
791773
540175
717756
665909
749829
752787
715654
783052
780292
810549
472944
536084
560181
813449
429591
569436
652131
695544
602872
597181
750189
427171
75762
540703
515550
571729
693244
706801
810531
736470
463286
429108
434936
487826
536142
550716
564561
552346
677861
556722
527391
536205
554635
581216
616201
770396
449847
505634
493851
540748
481566
505619
524608
646007
600026
451877
540410
575436
572019
627773
586118
545480
]
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 (541026 , 818312 , 746561 , 551558 , 636193 , 705221 , 627461 , 610243 , 791773 , 540175 , 717756 , 665909 , 749829 , 752787 , 715654 , 783052 , 780292 , 810549 , 472944 , 536084 , 560181 , 813449 , 429591 , 569436 , 652131 , 695544 , 602872 , 597181 , 750189 , 427171 , 75762 , 540703 , 515550 , 571729 , 693244 , 706801 , 810531 , 736470 , 463286 , 429108 , 434936 , 487826 , 536142 , 550716 , 564561 , 552346 , 677861 , 556722 , 527391 , 536205 , 554635 , 581216 , 616201 , 770396 , 449847 , 505634 , 493851 , 540748 , 481566 , 505619 , 524608 , 646007 , 600026 , 451877 , 540410 , 575436 , 572019 , 627773 , 586118 , 545480 );
Copy
2.11 ms (1.81%)
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
75762
427171
429108
429591
434936
449847
451877
463286
472944
481566
487826
493851
505619
505634
515550
524608
527391
536084
536142
536205
540175
540410
540703
540748
541026
545480
550716
551558
552346
554635
556722
560181
564561
569436
571729
572019
575436
581216
586118
597181
600026
602872
610243
616201
627461
627773
636193
646007
652131
665909
677861
693244
695544
705221
706801
715654
717756
736470
746561
749829
750189
752787
770396
780292
783052
791773
810531
810549
813449
818312
]
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 (75762 , 427171 , 429108 , 429591 , 434936 , 449847 , 451877 , 463286 , 472944 , 481566 , 487826 , 493851 , 505619 , 505634 , 515550 , 524608 , 527391 , 536084 , 536142 , 536205 , 540175 , 540410 , 540703 , 540748 , 541026 , 545480 , 550716 , 551558 , 552346 , 554635 , 556722 , 560181 , 564561 , 569436 , 571729 , 572019 , 575436 , 581216 , 586118 , 597181 , 600026 , 602872 , 610243 , 616201 , 627461 , 627773 , 636193 , 646007 , 652131 , 665909 , 677861 , 693244 , 695544 , 705221 , 706801 , 715654 , 717756 , 736470 , 746561 , 749829 , 750189 , 752787 , 770396 , 780292 , 783052 , 791773 , 810531 , 810549 , 813449 , 818312 );
Copy