3
16.65 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
496794
605398
605553
629967
591094
446976
578406
579360
326134
523418
683529
395406
528682
634856
573403
435624
445733
518438
417829
445740
534843
550667
586690
445728
640723
804491
429088
638576
411681
554409
523198
627812
645618
605665
386796
482527
621612
530026
582821
644961
524322
518493
788562
425655
451983
423329
524499
391386
541081
649525
573212
605521
478527
658082
543175
635582
554392
604478
497679
639277
478672
551034
544472
516684
577108
502315
602008
601101
600030
426405
]
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 (496794 , 605398 , 605553 , 629967 , 591094 , 446976 , 578406 , 579360 , 326134 , 523418 , 683529 , 395406 , 528682 , 634856 , 573403 , 435624 , 445733 , 518438 , 417829 , 445740 , 534843 , 550667 , 586690 , 445728 , 640723 , 804491 , 429088 , 638576 , 411681 , 554409 , 523198 , 627812 , 645618 , 605665 , 386796 , 482527 , 621612 , 530026 , 582821 , 644961 , 524322 , 518493 , 788562 , 425655 , 451983 , 423329 , 524499 , 391386 , 541081 , 649525 , 573212 , 605521 , 478527 , 658082 , 543175 , 635582 , 554392 , 604478 , 497679 , 639277 , 478672 , 551034 , 544472 , 516684 , 577108 , 502315 , 602008 , 601101 , 600030 , 426405 );
Copy
4
2.18 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
326134
386796
391386
395406
411681
417829
423329
425655
426405
429088
435624
445728
445733
445740
446976
451983
478527
478672
482527
496794
497679
502315
516684
518438
518493
523198
523418
524322
524499
528682
530026
534843
541081
543175
544472
550667
551034
554392
554409
573212
573403
577108
578406
579360
582821
586690
591094
600030
601101
602008
604478
605398
605521
605553
605665
621612
627812
629967
634856
635582
638576
639277
640723
644961
645618
649525
658082
683529
788562
804491
]
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 (326134 , 386796 , 391386 , 395406 , 411681 , 417829 , 423329 , 425655 , 426405 , 429088 , 435624 , 445728 , 445733 , 445740 , 446976 , 451983 , 478527 , 478672 , 482527 , 496794 , 497679 , 502315 , 516684 , 518438 , 518493 , 523198 , 523418 , 524322 , 524499 , 528682 , 530026 , 534843 , 541081 , 543175 , 544472 , 550667 , 551034 , 554392 , 554409 , 573212 , 573403 , 577108 , 578406 , 579360 , 582821 , 586690 , 591094 , 600030 , 601101 , 602008 , 604478 , 605398 , 605521 , 605553 , 605665 , 621612 , 627812 , 629967 , 634856 , 635582 , 638576 , 639277 , 640723 , 644961 , 645618 , 649525 , 658082 , 683529 , 788562 , 804491 );
Copy
5
155.98 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
326134
386796
391386
395406
411681
417829
423329
425655
426405
429088
435624
445728
445733
445740
446976
451983
478527
478672
482527
496794
497679
502315
516684
518438
518493
523198
523418
524322
524499
528682
530026
534843
541081
543175
544472
550667
551034
554392
554409
573212
573403
577108
578406
579360
582821
586690
591094
600030
601101
602008
604478
605398
605521
605553
605665
621612
627812
629967
634856
635582
638576
639277
640723
644961
645618
649525
658082
683529
788562
804491
]
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 (326134 , 386796 , 391386 , 395406 , 411681 , 417829 , 423329 , 425655 , 426405 , 429088 , 435624 , 445728 , 445733 , 445740 , 446976 , 451983 , 478527 , 478672 , 482527 , 496794 , 497679 , 502315 , 516684 , 518438 , 518493 , 523198 , 523418 , 524322 , 524499 , 528682 , 530026 , 534843 , 541081 , 543175 , 544472 , 550667 , 551034 , 554392 , 554409 , 573212 , 573403 , 577108 , 578406 , 579360 , 582821 , 586690 , 591094 , 600030 , 601101 , 602008 , 604478 , 605398 , 605521 , 605553 , 605665 , 621612 , 627812 , 629967 , 634856 , 635582 , 638576 , 639277 , 640723 , 644961 , 645618 , 649525 , 658082 , 683529 , 788562 , 804491 );
Copy