4
14.01 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
819704
786101
732603
616319
401045
755106
777628
791009
710817
749538
779084
786160
728131
682359
616243
793752
414808
819720
728151
779085
779083
795673
779081
764956
577718
709764
507315
400713
397087
728112
798856
604635
721042
603708
567932
796024
765330
670032
710798
452369
524667
777568
432928
428764
497946
532483
418895
727610
594992
476990
466557
686590
617648
805354
824456
673472
576128
728786
802057
450982
593876
644124
456705
434792
488051
537247
586102
810291
440650
615818
464366
557451
]
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 (819704 , 786101 , 732603 , 616319 , 401045 , 755106 , 777628 , 791009 , 710817 , 749538 , 779084 , 786160 , 728131 , 682359 , 616243 , 793752 , 414808 , 819720 , 728151 , 779085 , 779083 , 795673 , 779081 , 764956 , 577718 , 709764 , 507315 , 400713 , 397087 , 728112 , 798856 , 604635 , 721042 , 603708 , 567932 , 796024 , 765330 , 670032 , 710798 , 452369 , 524667 , 777568 , 432928 , 428764 , 497946 , 532483 , 418895 , 727610 , 594992 , 476990 , 466557 , 686590 , 617648 , 805354 , 824456 , 673472 , 576128 , 728786 , 802057 , 450982 , 593876 , 644124 , 456705 , 434792 , 488051 , 537247 , 586102 , 810291 , 440650 , 615818 , 464366 , 557451 );
Copy
5
1.99 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
397087
400713
401045
414808
418895
428764
432928
434792
440650
450982
452369
456705
464366
466557
476990
488051
497946
507315
524667
532483
537247
557451
567932
576128
577718
586102
593876
594992
603708
604635
615818
616243
616319
617648
644124
670032
673472
682359
686590
709764
710798
710817
721042
727610
728112
728131
728151
728786
732603
749538
755106
764956
765330
777568
777628
779081
779083
779084
779085
786101
786160
791009
793752
795673
796024
798856
802057
805354
810291
819704
819720
824456
]
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 (397087 , 400713 , 401045 , 414808 , 418895 , 428764 , 432928 , 434792 , 440650 , 450982 , 452369 , 456705 , 464366 , 466557 , 476990 , 488051 , 497946 , 507315 , 524667 , 532483 , 537247 , 557451 , 567932 , 576128 , 577718 , 586102 , 593876 , 594992 , 603708 , 604635 , 615818 , 616243 , 616319 , 617648 , 644124 , 670032 , 673472 , 682359 , 686590 , 709764 , 710798 , 710817 , 721042 , 727610 , 728112 , 728131 , 728151 , 728786 , 732603 , 749538 , 755106 , 764956 , 765330 , 777568 , 777628 , 779081 , 779083 , 779084 , 779085 , 786101 , 786160 , 791009 , 793752 , 795673 , 796024 , 798856 , 802057 , 805354 , 810291 , 819704 , 819720 , 824456 );
Copy
6
102.62 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
397087
400713
401045
414808
418895
428764
432928
434792
440650
450982
452369
456705
464366
466557
476990
488051
497946
507315
524667
532483
537247
557451
567932
576128
577718
586102
593876
594992
603708
604635
615818
616243
616319
617648
644124
670032
673472
682359
686590
709764
710798
710817
721042
727610
728112
728131
728151
728786
732603
749538
755106
764956
765330
777568
777628
779081
779083
779084
779085
786101
786160
791009
793752
795673
796024
798856
802057
805354
810291
819704
819720
824456
]
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 (397087 , 400713 , 401045 , 414808 , 418895 , 428764 , 432928 , 434792 , 440650 , 450982 , 452369 , 456705 , 464366 , 466557 , 476990 , 488051 , 497946 , 507315 , 524667 , 532483 , 537247 , 557451 , 567932 , 576128 , 577718 , 586102 , 593876 , 594992 , 603708 , 604635 , 615818 , 616243 , 616319 , 617648 , 644124 , 670032 , 673472 , 682359 , 686590 , 709764 , 710798 , 710817 , 721042 , 727610 , 728112 , 728131 , 728151 , 728786 , 732603 , 749538 , 755106 , 764956 , 765330 , 777568 , 777628 , 779081 , 779083 , 779084 , 779085 , 786101 , 786160 , 791009 , 793752 , 795673 , 796024 , 798856 , 802057 , 805354 , 810291 , 819704 , 819720 , 824456 );
Copy