3
13.15 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
808154
795809
577111
775167
727408
790140
773142
792476
811381
791779
769710
796028
728870
569777
595395
756908
794515
787034
698782
611285
542642
727446
772048
796456
699480
583958
732156
758255
569771
736943
751447
735502
788202
796523
545391
662459
771989
592831
794975
804181
741219
745386
542422
544096
523661
807277
474485
510055
693410
456778
644005
503494
647938
672684
678942
583866
637007
559747
515378
515415
610734
513030
533466
651162
640802
610692
634765
593863
672682
647975
696606
536691
]
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 (808154 , 795809 , 577111 , 775167 , 727408 , 790140 , 773142 , 792476 , 811381 , 791779 , 769710 , 796028 , 728870 , 569777 , 595395 , 756908 , 794515 , 787034 , 698782 , 611285 , 542642 , 727446 , 772048 , 796456 , 699480 , 583958 , 732156 , 758255 , 569771 , 736943 , 751447 , 735502 , 788202 , 796523 , 545391 , 662459 , 771989 , 592831 , 794975 , 804181 , 741219 , 745386 , 542422 , 544096 , 523661 , 807277 , 474485 , 510055 , 693410 , 456778 , 644005 , 503494 , 647938 , 672684 , 678942 , 583866 , 637007 , 559747 , 515378 , 515415 , 610734 , 513030 , 533466 , 651162 , 640802 , 610692 , 634765 , 593863 , 672682 , 647975 , 696606 , 536691 );
Copy
4
2.08 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
456778
474485
503494
510055
513030
515378
515415
523661
533466
536691
542422
542642
544096
545391
559747
569771
569777
577111
583866
583958
592831
593863
595395
610692
610734
611285
634765
637007
640802
644005
647938
647975
651162
662459
672682
672684
678942
693410
696606
698782
699480
727408
727446
728870
732156
735502
736943
741219
745386
751447
756908
758255
769710
771989
772048
773142
775167
787034
788202
790140
791779
792476
794515
794975
795809
796028
796456
796523
804181
807277
808154
811381
]
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 (456778 , 474485 , 503494 , 510055 , 513030 , 515378 , 515415 , 523661 , 533466 , 536691 , 542422 , 542642 , 544096 , 545391 , 559747 , 569771 , 569777 , 577111 , 583866 , 583958 , 592831 , 593863 , 595395 , 610692 , 610734 , 611285 , 634765 , 637007 , 640802 , 644005 , 647938 , 647975 , 651162 , 662459 , 672682 , 672684 , 678942 , 693410 , 696606 , 698782 , 699480 , 727408 , 727446 , 728870 , 732156 , 735502 , 736943 , 741219 , 745386 , 751447 , 756908 , 758255 , 769710 , 771989 , 772048 , 773142 , 775167 , 787034 , 788202 , 790140 , 791779 , 792476 , 794515 , 794975 , 795809 , 796028 , 796456 , 796523 , 804181 , 807277 , 808154 , 811381 );
Copy
5
73.66 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
456778
474485
503494
510055
513030
515378
515415
523661
533466
536691
542422
542642
544096
545391
559747
569771
569777
577111
583866
583958
592831
593863
595395
610692
610734
611285
634765
637007
640802
644005
647938
647975
651162
662459
672682
672684
678942
693410
696606
698782
699480
727408
727446
728870
732156
735502
736943
741219
745386
751447
756908
758255
769710
771989
772048
773142
775167
787034
788202
790140
791779
792476
794515
794975
795809
796028
796456
796523
804181
807277
808154
811381
]
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 (456778 , 474485 , 503494 , 510055 , 513030 , 515378 , 515415 , 523661 , 533466 , 536691 , 542422 , 542642 , 544096 , 545391 , 559747 , 569771 , 569777 , 577111 , 583866 , 583958 , 592831 , 593863 , 595395 , 610692 , 610734 , 611285 , 634765 , 637007 , 640802 , 644005 , 647938 , 647975 , 651162 , 662459 , 672682 , 672684 , 678942 , 693410 , 696606 , 698782 , 699480 , 727408 , 727446 , 728870 , 732156 , 735502 , 736943 , 741219 , 745386 , 751447 , 756908 , 758255 , 769710 , 771989 , 772048 , 773142 , 775167 , 787034 , 788202 , 790140 , 791779 , 792476 , 794515 , 794975 , 795809 , 796028 , 796456 , 796523 , 804181 , 807277 , 808154 , 811381 );
Copy