91.95 ms (67.41%)
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
395459
403496
407039
409949
419034
419496
424421
429185
441702
443709
449647
456398
458344
466163
468043
468484
468742
469003
469530
470213
470436
472447
472917
475223
477913
478011
486740
491646
491753
508143
509554
510597
512163
515389
528386
536894
559217
570266
576065
579648
580288
600281
601878
603154
605467
609279
609370
615318
634515
634746
643028
652758
653525
673988
699554
704658
717852
719067
726708
745028
767021
777010
785384
795514
810663
810690
810899
810926
814746
818156
]
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 (395459 , 403496 , 407039 , 409949 , 419034 , 419496 , 424421 , 429185 , 441702 , 443709 , 449647 , 456398 , 458344 , 466163 , 468043 , 468484 , 468742 , 469003 , 469530 , 470213 , 470436 , 472447 , 472917 , 475223 , 477913 , 478011 , 486740 , 491646 , 491753 , 508143 , 509554 , 510597 , 512163 , 515389 , 528386 , 536894 , 559217 , 570266 , 576065 , 579648 , 580288 , 600281 , 601878 , 603154 , 605467 , 609279 , 609370 , 615318 , 634515 , 634746 , 643028 , 652758 , 653525 , 673988 , 699554 , 704658 , 717852 , 719067 , 726708 , 745028 , 767021 , 777010 , 785384 , 795514 , 810663 , 810690 , 810899 , 810926 , 814746 , 818156 );
Copy
10.04 ms (7.36%)
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
777010
785384
395459
429185
449647
477913
443709
403496
419496
468484
456398
468043
470436
536894
570266
559217
653525
704658
580288
615318
609370
634515
810663
810690
767021
745028
458344
409949
466163
510597
515389
491646
441702
478011
579648
652758
719067
643028
810899
810926
726708
468742
512163
419034
818156
472447
472917
508143
576065
699554
603154
601878
795514
475223
486740
814746
509554
528386
469530
717852
600281
634746
470213
407039
424421
469003
673988
605467
491753
609279
]
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 (777010 , 785384 , 395459 , 429185 , 449647 , 477913 , 443709 , 403496 , 419496 , 468484 , 456398 , 468043 , 470436 , 536894 , 570266 , 559217 , 653525 , 704658 , 580288 , 615318 , 609370 , 634515 , 810663 , 810690 , 767021 , 745028 , 458344 , 409949 , 466163 , 510597 , 515389 , 491646 , 441702 , 478011 , 579648 , 652758 , 719067 , 643028 , 810899 , 810926 , 726708 , 468742 , 512163 , 419034 , 818156 , 472447 , 472917 , 508143 , 576065 , 699554 , 603154 , 601878 , 795514 , 475223 , 486740 , 814746 , 509554 , 528386 , 469530 , 717852 , 600281 , 634746 , 470213 , 407039 , 424421 , 469003 , 673988 , 605467 , 491753 , 609279 );
Copy
3.47 ms (2.54%)
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
395459
403496
407039
409949
419034
419496
424421
429185
441702
443709
449647
456398
458344
466163
468043
468484
468742
469003
469530
470213
470436
472447
472917
475223
477913
478011
486740
491646
491753
508143
509554
510597
512163
515389
528386
536894
559217
570266
576065
579648
580288
600281
601878
603154
605467
609279
609370
615318
634515
634746
643028
652758
653525
673988
699554
704658
717852
719067
726708
745028
767021
777010
785384
795514
810663
810690
810899
810926
814746
818156
]
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 (395459 , 403496 , 407039 , 409949 , 419034 , 419496 , 424421 , 429185 , 441702 , 443709 , 449647 , 456398 , 458344 , 466163 , 468043 , 468484 , 468742 , 469003 , 469530 , 470213 , 470436 , 472447 , 472917 , 475223 , 477913 , 478011 , 486740 , 491646 , 491753 , 508143 , 509554 , 510597 , 512163 , 515389 , 528386 , 536894 , 559217 , 570266 , 576065 , 579648 , 580288 , 600281 , 601878 , 603154 , 605467 , 609279 , 609370 , 615318 , 634515 , 634746 , 643028 , 652758 , 653525 , 673988 , 699554 , 704658 , 717852 , 719067 , 726708 , 745028 , 767021 , 777010 , 785384 , 795514 , 810663 , 810690 , 810899 , 810926 , 814746 , 818156 );
Copy