89.78 ms (67.60%)
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
469691
471108
475556
477147
489061
506252
508701
510898
511162
516792
517332
518605
522214
524360
525727
527847
543317
554580
560969
566761
568835
571042
577433
584481
584592
585959
589683
590425
591197
592170
595315
596637
596960
599140
599529
599538
599938
602793
608787
611032
619007
630609
636461
641764
648634
667942
675107
675109
675429
675430
675431
675435
675660
675691
675696
675703
675725
693338
703364
746126
796831
798219
813532
]
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 (469691 , 471108 , 475556 , 477147 , 489061 , 506252 , 508701 , 510898 , 511162 , 516792 , 517332 , 518605 , 522214 , 524360 , 525727 , 527847 , 543317 , 554580 , 560969 , 566761 , 568835 , 571042 , 577433 , 584481 , 584592 , 585959 , 589683 , 590425 , 591197 , 592170 , 595315 , 596637 , 596960 , 599140 , 599529 , 599538 , 599938 , 602793 , 608787 , 611032 , 619007 , 630609 , 636461 , 641764 , 648634 , 667942 , 675107 , 675109 , 675429 , 675430 , 675431 , 675435 , 675660 , 675691 , 675696 , 675703 , 675725 , 693338 , 703364 , 746126 , 796831 , 798219 , 813532 );
Copy
10.97 ms (8.26%)
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
667942
675691
636461
596637
599140
471108
517332
518605
516792
524360
560969
584481
543317
554580
571042
675107
675109
675660
675703
585959
599538
796831
798219
746126
602793
475556
477147
506252
522214
648634
693338
511162
568835
584592
675429
675431
675696
675430
675725
703364
577433
592170
611032
630609
596960
599529
813532
641764
527847
489061
508701
469691
525727
675435
566761
590425
608787
595315
510898
599938
619007
589683
591197
]
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 (667942 , 675691 , 636461 , 596637 , 599140 , 471108 , 517332 , 518605 , 516792 , 524360 , 560969 , 584481 , 543317 , 554580 , 571042 , 675107 , 675109 , 675660 , 675703 , 585959 , 599538 , 796831 , 798219 , 746126 , 602793 , 475556 , 477147 , 506252 , 522214 , 648634 , 693338 , 511162 , 568835 , 584592 , 675429 , 675431 , 675696 , 675430 , 675725 , 703364 , 577433 , 592170 , 611032 , 630609 , 596960 , 599529 , 813532 , 641764 , 527847 , 489061 , 508701 , 469691 , 525727 , 675435 , 566761 , 590425 , 608787 , 595315 , 510898 , 599938 , 619007 , 589683 , 591197 );
Copy
2.46 ms (1.85%)
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
469691
471108
475556
477147
489061
506252
508701
510898
511162
516792
517332
518605
522214
524360
525727
527847
543317
554580
560969
566761
568835
571042
577433
584481
584592
585959
589683
590425
591197
592170
595315
596637
596960
599140
599529
599538
599938
602793
608787
611032
619007
630609
636461
641764
648634
667942
675107
675109
675429
675430
675431
675435
675660
675691
675696
675703
675725
693338
703364
746126
796831
798219
813532
]
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 (469691 , 471108 , 475556 , 477147 , 489061 , 506252 , 508701 , 510898 , 511162 , 516792 , 517332 , 518605 , 522214 , 524360 , 525727 , 527847 , 543317 , 554580 , 560969 , 566761 , 568835 , 571042 , 577433 , 584481 , 584592 , 585959 , 589683 , 590425 , 591197 , 592170 , 595315 , 596637 , 596960 , 599140 , 599529 , 599538 , 599938 , 602793 , 608787 , 611032 , 619007 , 630609 , 636461 , 641764 , 648634 , 667942 , 675107 , 675109 , 675429 , 675430 , 675431 , 675435 , 675660 , 675691 , 675696 , 675703 , 675725 , 693338 , 703364 , 746126 , 796831 , 798219 , 813532 );
Copy