3
8.22 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
422982
797027
719211
738697
645494
710996
754179
446258
446266
456628
671152
422525
817679
738754
795432
531565
683357
600818
729156
797049
660418
687452
588220
789011
738737
710074
590797
785714
812837
738684
738759
645665
812083
728326
606531
463338
582931
621469
694373
532544
584079
645602
612233
751842
790045
737927
738762
483790
483796
661997
560859
785711
755721
622277
594570
738756
758584
496972
563656
645669
638894
584535
610838
758590
566789
483795
578295
584610
475992
584167
510244
537206
596555
561458
]
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 (422982 , 797027 , 719211 , 738697 , 645494 , 710996 , 754179 , 446258 , 446266 , 456628 , 671152 , 422525 , 817679 , 738754 , 795432 , 531565 , 683357 , 600818 , 729156 , 797049 , 660418 , 687452 , 588220 , 789011 , 738737 , 710074 , 590797 , 785714 , 812837 , 738684 , 738759 , 645665 , 812083 , 728326 , 606531 , 463338 , 582931 , 621469 , 694373 , 532544 , 584079 , 645602 , 612233 , 751842 , 790045 , 737927 , 738762 , 483790 , 483796 , 661997 , 560859 , 785711 , 755721 , 622277 , 594570 , 738756 , 758584 , 496972 , 563656 , 645669 , 638894 , 584535 , 610838 , 758590 , 566789 , 483795 , 578295 , 584610 , 475992 , 584167 , 510244 , 537206 , 596555 , 561458 );
Copy
4
2.56 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
422525
422982
446258
446266
456628
463338
475992
483790
483795
483796
496972
510244
531565
532544
537206
560859
561458
563656
566789
578295
582931
584079
584167
584535
584610
588220
590797
594570
596555
600818
606531
610838
612233
621469
622277
638894
645494
645602
645665
645669
660418
661997
671152
683357
687452
694373
710074
710996
719211
728326
729156
737927
738684
738697
738737
738754
738756
738759
738762
751842
754179
755721
758584
758590
785711
785714
789011
790045
795432
797027
797049
812083
812837
817679
]
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 (422525 , 422982 , 446258 , 446266 , 456628 , 463338 , 475992 , 483790 , 483795 , 483796 , 496972 , 510244 , 531565 , 532544 , 537206 , 560859 , 561458 , 563656 , 566789 , 578295 , 582931 , 584079 , 584167 , 584535 , 584610 , 588220 , 590797 , 594570 , 596555 , 600818 , 606531 , 610838 , 612233 , 621469 , 622277 , 638894 , 645494 , 645602 , 645665 , 645669 , 660418 , 661997 , 671152 , 683357 , 687452 , 694373 , 710074 , 710996 , 719211 , 728326 , 729156 , 737927 , 738684 , 738697 , 738737 , 738754 , 738756 , 738759 , 738762 , 751842 , 754179 , 755721 , 758584 , 758590 , 785711 , 785714 , 789011 , 790045 , 795432 , 797027 , 797049 , 812083 , 812837 , 817679 );
Copy
5
86.92 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
422525
422982
446258
446266
456628
463338
475992
483790
483795
483796
496972
510244
531565
532544
537206
560859
561458
563656
566789
578295
582931
584079
584167
584535
584610
588220
590797
594570
596555
600818
606531
610838
612233
621469
622277
638894
645494
645602
645665
645669
660418
661997
671152
683357
687452
694373
710074
710996
719211
728326
729156
737927
738684
738697
738737
738754
738756
738759
738762
751842
754179
755721
758584
758590
785711
785714
789011
790045
795432
797027
797049
812083
812837
817679
]
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 (422525 , 422982 , 446258 , 446266 , 456628 , 463338 , 475992 , 483790 , 483795 , 483796 , 496972 , 510244 , 531565 , 532544 , 537206 , 560859 , 561458 , 563656 , 566789 , 578295 , 582931 , 584079 , 584167 , 584535 , 584610 , 588220 , 590797 , 594570 , 596555 , 600818 , 606531 , 610838 , 612233 , 621469 , 622277 , 638894 , 645494 , 645602 , 645665 , 645669 , 660418 , 661997 , 671152 , 683357 , 687452 , 694373 , 710074 , 710996 , 719211 , 728326 , 729156 , 737927 , 738684 , 738697 , 738737 , 738754 , 738756 , 738759 , 738762 , 751842 , 754179 , 755721 , 758584 , 758590 , 785711 , 785714 , 789011 , 790045 , 795432 , 797027 , 797049 , 812083 , 812837 , 817679 );
Copy