3
8.77 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
746651
628611
715869
762782
718626
717868
703772
741135
818078
604683
724699
788017
490525
541124
590656
726385
793678
512184
720011
747046
703684
814925
546686
541013
641919
725652
456266
538432
764923
483675
481129
651356
631331
640451
514328
756626
563736
712073
696333
606558
628748
629654
639687
741329
436523
505534
647590
676571
595726
502337
759845
815543
451310
452722
461268
492958
579631
606333
592098
448622
493116
518242
478950
562184
599117
519668
479893
463728
513465
463034
405556
551226
451476
]
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 (746651 , 628611 , 715869 , 762782 , 718626 , 717868 , 703772 , 741135 , 818078 , 604683 , 724699 , 788017 , 490525 , 541124 , 590656 , 726385 , 793678 , 512184 , 720011 , 747046 , 703684 , 814925 , 546686 , 541013 , 641919 , 725652 , 456266 , 538432 , 764923 , 483675 , 481129 , 651356 , 631331 , 640451 , 514328 , 756626 , 563736 , 712073 , 696333 , 606558 , 628748 , 629654 , 639687 , 741329 , 436523 , 505534 , 647590 , 676571 , 595726 , 502337 , 759845 , 815543 , 451310 , 452722 , 461268 , 492958 , 579631 , 606333 , 592098 , 448622 , 493116 , 518242 , 478950 , 562184 , 599117 , 519668 , 479893 , 463728 , 513465 , 463034 , 405556 , 551226 , 451476 );
Copy
4
2.77 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
405556
436523
448622
451310
451476
452722
456266
461268
463034
463728
478950
479893
481129
483675
490525
492958
493116
502337
505534
512184
513465
514328
518242
519668
538432
541013
541124
546686
551226
562184
563736
579631
590656
592098
595726
599117
604683
606333
606558
628611
628748
629654
631331
639687
640451
641919
647590
651356
676571
696333
703684
703772
712073
715869
717868
718626
720011
724699
725652
726385
741135
741329
746651
747046
756626
759845
762782
764923
788017
793678
814925
815543
818078
]
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 (405556 , 436523 , 448622 , 451310 , 451476 , 452722 , 456266 , 461268 , 463034 , 463728 , 478950 , 479893 , 481129 , 483675 , 490525 , 492958 , 493116 , 502337 , 505534 , 512184 , 513465 , 514328 , 518242 , 519668 , 538432 , 541013 , 541124 , 546686 , 551226 , 562184 , 563736 , 579631 , 590656 , 592098 , 595726 , 599117 , 604683 , 606333 , 606558 , 628611 , 628748 , 629654 , 631331 , 639687 , 640451 , 641919 , 647590 , 651356 , 676571 , 696333 , 703684 , 703772 , 712073 , 715869 , 717868 , 718626 , 720011 , 724699 , 725652 , 726385 , 741135 , 741329 , 746651 , 747046 , 756626 , 759845 , 762782 , 764923 , 788017 , 793678 , 814925 , 815543 , 818078 );
Copy
5
83.19 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
405556
436523
448622
451310
451476
452722
456266
461268
463034
463728
478950
479893
481129
483675
490525
492958
493116
502337
505534
512184
513465
514328
518242
519668
538432
541013
541124
546686
551226
562184
563736
579631
590656
592098
595726
599117
604683
606333
606558
628611
628748
629654
631331
639687
640451
641919
647590
651356
676571
696333
703684
703772
712073
715869
717868
718626
720011
724699
725652
726385
741135
741329
746651
747046
756626
759845
762782
764923
788017
793678
814925
815543
818078
]
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 (405556 , 436523 , 448622 , 451310 , 451476 , 452722 , 456266 , 461268 , 463034 , 463728 , 478950 , 479893 , 481129 , 483675 , 490525 , 492958 , 493116 , 502337 , 505534 , 512184 , 513465 , 514328 , 518242 , 519668 , 538432 , 541013 , 541124 , 546686 , 551226 , 562184 , 563736 , 579631 , 590656 , 592098 , 595726 , 599117 , 604683 , 606333 , 606558 , 628611 , 628748 , 629654 , 631331 , 639687 , 640451 , 641919 , 647590 , 651356 , 676571 , 696333 , 703684 , 703772 , 712073 , 715869 , 717868 , 718626 , 720011 , 724699 , 725652 , 726385 , 741135 , 741329 , 746651 , 747046 , 756626 , 759845 , 762782 , 764923 , 788017 , 793678 , 814925 , 815543 , 818078 );
Copy