3
9.54 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
757277
487429
757262
750849
639928
383932
810434
724121
553417
768348
826835
654878
819721
744390
581974
655184
707927
629419
782040
794378
670904
765400
524954
827152
719327
770390
785491
595015
788864
606346
577876
656264
602283
638386
556142
717516
399066
668766
489531
531804
735134
541322
554830
723542
466808
467114
604669
802049
605675
465454
750359
590344
541278
709693
510783
499503
532727
426295
704269
544852
646004
520767
531438
443219
630553
532345
634510
545461
533372
642063
]
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 (757277 , 487429 , 757262 , 750849 , 639928 , 383932 , 810434 , 724121 , 553417 , 768348 , 826835 , 654878 , 819721 , 744390 , 581974 , 655184 , 707927 , 629419 , 782040 , 794378 , 670904 , 765400 , 524954 , 827152 , 719327 , 770390 , 785491 , 595015 , 788864 , 606346 , 577876 , 656264 , 602283 , 638386 , 556142 , 717516 , 399066 , 668766 , 489531 , 531804 , 735134 , 541322 , 554830 , 723542 , 466808 , 467114 , 604669 , 802049 , 605675 , 465454 , 750359 , 590344 , 541278 , 709693 , 510783 , 499503 , 532727 , 426295 , 704269 , 544852 , 646004 , 520767 , 531438 , 443219 , 630553 , 532345 , 634510 , 545461 , 533372 , 642063 );
Copy
4
2.67 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
383932
399066
426295
443219
465454
466808
467114
487429
489531
499503
510783
520767
524954
531438
531804
532345
532727
533372
541278
541322
544852
545461
553417
554830
556142
577876
581974
590344
595015
602283
604669
605675
606346
629419
630553
634510
638386
639928
642063
646004
654878
655184
656264
668766
670904
704269
707927
709693
717516
719327
723542
724121
735134
744390
750359
750849
757262
757277
765400
768348
770390
782040
785491
788864
794378
802049
810434
819721
826835
827152
]
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 (383932 , 399066 , 426295 , 443219 , 465454 , 466808 , 467114 , 487429 , 489531 , 499503 , 510783 , 520767 , 524954 , 531438 , 531804 , 532345 , 532727 , 533372 , 541278 , 541322 , 544852 , 545461 , 553417 , 554830 , 556142 , 577876 , 581974 , 590344 , 595015 , 602283 , 604669 , 605675 , 606346 , 629419 , 630553 , 634510 , 638386 , 639928 , 642063 , 646004 , 654878 , 655184 , 656264 , 668766 , 670904 , 704269 , 707927 , 709693 , 717516 , 719327 , 723542 , 724121 , 735134 , 744390 , 750359 , 750849 , 757262 , 757277 , 765400 , 768348 , 770390 , 782040 , 785491 , 788864 , 794378 , 802049 , 810434 , 819721 , 826835 , 827152 );
Copy
5
85.82 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
383932
399066
426295
443219
465454
466808
467114
487429
489531
499503
510783
520767
524954
531438
531804
532345
532727
533372
541278
541322
544852
545461
553417
554830
556142
577876
581974
590344
595015
602283
604669
605675
606346
629419
630553
634510
638386
639928
642063
646004
654878
655184
656264
668766
670904
704269
707927
709693
717516
719327
723542
724121
735134
744390
750359
750849
757262
757277
765400
768348
770390
782040
785491
788864
794378
802049
810434
819721
826835
827152
]
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 (383932 , 399066 , 426295 , 443219 , 465454 , 466808 , 467114 , 487429 , 489531 , 499503 , 510783 , 520767 , 524954 , 531438 , 531804 , 532345 , 532727 , 533372 , 541278 , 541322 , 544852 , 545461 , 553417 , 554830 , 556142 , 577876 , 581974 , 590344 , 595015 , 602283 , 604669 , 605675 , 606346 , 629419 , 630553 , 634510 , 638386 , 639928 , 642063 , 646004 , 654878 , 655184 , 656264 , 668766 , 670904 , 704269 , 707927 , 709693 , 717516 , 719327 , 723542 , 724121 , 735134 , 744390 , 750359 , 750849 , 757262 , 757277 , 765400 , 768348 , 770390 , 782040 , 785491 , 788864 , 794378 , 802049 , 810434 , 819721 , 826835 , 827152 );
Copy