3
12.51 ms
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
616353
503269
423488
782234
721472
594810
576804
786550
710511
424739
712558
618774
809753
713486
533607
820094
714127
470954
603973
467461
509834
467404
483379
488221
735005
784287
424742
667900
727018
413304
515589
504572
534683
486587
465354
482680
622057
423485
533481
580576
612044
782020
423767
570090
459170
469967
580425
578106
469913
573483
810893
518595
591648
497203
513707
611950
464791
564737
521552
594899
489060
609652
554770
561458
558991
]
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 (616353 , 503269 , 423488 , 782234 , 721472 , 594810 , 576804 , 786550 , 710511 , 424739 , 712558 , 618774 , 809753 , 713486 , 533607 , 820094 , 714127 , 470954 , 603973 , 467461 , 509834 , 467404 , 483379 , 488221 , 735005 , 784287 , 424742 , 667900 , 727018 , 413304 , 515589 , 504572 , 534683 , 486587 , 465354 , 482680 , 622057 , 423485 , 533481 , 580576 , 612044 , 782020 , 423767 , 570090 , 459170 , 469967 , 580425 , 578106 , 469913 , 573483 , 810893 , 518595 , 591648 , 497203 , 513707 , 611950 , 464791 , 564737 , 521552 , 594899 , 489060 , 609652 , 554770 , 561458 , 558991 );
Copy
4
3.41 ms
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
413304
423485
423488
423767
424739
424742
459170
464791
465354
467404
467461
469913
469967
470954
482680
483379
486587
488221
489060
497203
503269
504572
509834
513707
515589
518595
521552
533481
533607
534683
554770
558991
561458
564737
570090
573483
576804
578106
580425
580576
591648
594810
594899
603973
609652
611950
612044
616353
618774
622057
667900
710511
712558
713486
714127
721472
727018
735005
782020
782234
784287
786550
809753
810893
820094
]
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 (413304 , 423485 , 423488 , 423767 , 424739 , 424742 , 459170 , 464791 , 465354 , 467404 , 467461 , 469913 , 469967 , 470954 , 482680 , 483379 , 486587 , 488221 , 489060 , 497203 , 503269 , 504572 , 509834 , 513707 , 515589 , 518595 , 521552 , 533481 , 533607 , 534683 , 554770 , 558991 , 561458 , 564737 , 570090 , 573483 , 576804 , 578106 , 580425 , 580576 , 591648 , 594810 , 594899 , 603973 , 609652 , 611950 , 612044 , 616353 , 618774 , 622057 , 667900 , 710511 , 712558 , 713486 , 714127 , 721472 , 727018 , 735005 , 782020 , 782234 , 784287 , 786550 , 809753 , 810893 , 820094 );
Copy
5
341.45 ms
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
413304
423485
423488
423767
424739
424742
459170
464791
465354
467404
467461
469913
469967
470954
482680
483379
486587
488221
489060
497203
503269
504572
509834
513707
515589
518595
521552
533481
533607
534683
554770
558991
561458
564737
570090
573483
576804
578106
580425
580576
591648
594810
594899
603973
609652
611950
612044
616353
618774
622057
667900
710511
712558
713486
714127
721472
727018
735005
782020
782234
784287
786550
809753
810893
820094
]
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 (413304 , 423485 , 423488 , 423767 , 424739 , 424742 , 459170 , 464791 , 465354 , 467404 , 467461 , 469913 , 469967 , 470954 , 482680 , 483379 , 486587 , 488221 , 489060 , 497203 , 503269 , 504572 , 509834 , 513707 , 515589 , 518595 , 521552 , 533481 , 533607 , 534683 , 554770 , 558991 , 561458 , 564737 , 570090 , 573483 , 576804 , 578106 , 580425 , 580576 , 591648 , 594810 , 594899 , 603973 , 609652 , 611950 , 612044 , 616353 , 618774 , 622057 , 667900 , 710511 , 712558 , 713486 , 714127 , 721472 , 727018 , 735005 , 782020 , 782234 , 784287 , 786550 , 809753 , 810893 , 820094 );
Copy