3
9.50 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
799046
697700
774171
771968
620645
603610
725346
752181
728130
797769
773781
773041
742820
728112
788632
786160
728115
737315
759718
728131
728427
726967
794776
771804
728060
786831
803595
747135
811764
633091
761557
805221
670234
670003
670032
646108
712006
670257
811993
704525
617087
594166
615660
725339
728899
747090
805274
788260
704218
630547
805224
809271
728458
726882
742694
797126
702679
612726
670117
615851
603652
774178
646029
633124
704531
]
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 (799046 , 697700 , 774171 , 771968 , 620645 , 603610 , 725346 , 752181 , 728130 , 797769 , 773781 , 773041 , 742820 , 728112 , 788632 , 786160 , 728115 , 737315 , 759718 , 728131 , 728427 , 726967 , 794776 , 771804 , 728060 , 786831 , 803595 , 747135 , 811764 , 633091 , 761557 , 805221 , 670234 , 670003 , 670032 , 646108 , 712006 , 670257 , 811993 , 704525 , 617087 , 594166 , 615660 , 725339 , 728899 , 747090 , 805274 , 788260 , 704218 , 630547 , 805224 , 809271 , 728458 , 726882 , 742694 , 797126 , 702679 , 612726 , 670117 , 615851 , 603652 , 774178 , 646029 , 633124 , 704531 );
Copy
4
2.78 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
594166
603610
603652
612726
615660
615851
617087
620645
630547
633091
633124
646029
646108
670003
670032
670117
670234
670257
697700
702679
704218
704525
704531
712006
725339
725346
726882
726967
728060
728112
728115
728130
728131
728427
728458
728899
737315
742694
742820
747090
747135
752181
759718
761557
771804
771968
773041
773781
774171
774178
786160
786831
788260
788632
794776
797126
797769
799046
803595
805221
805224
805274
809271
811764
811993
]
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 (594166 , 603610 , 603652 , 612726 , 615660 , 615851 , 617087 , 620645 , 630547 , 633091 , 633124 , 646029 , 646108 , 670003 , 670032 , 670117 , 670234 , 670257 , 697700 , 702679 , 704218 , 704525 , 704531 , 712006 , 725339 , 725346 , 726882 , 726967 , 728060 , 728112 , 728115 , 728130 , 728131 , 728427 , 728458 , 728899 , 737315 , 742694 , 742820 , 747090 , 747135 , 752181 , 759718 , 761557 , 771804 , 771968 , 773041 , 773781 , 774171 , 774178 , 786160 , 786831 , 788260 , 788632 , 794776 , 797126 , 797769 , 799046 , 803595 , 805221 , 805224 , 805274 , 809271 , 811764 , 811993 );
Copy
5
107.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
594166
603610
603652
612726
615660
615851
617087
620645
630547
633091
633124
646029
646108
670003
670032
670117
670234
670257
697700
702679
704218
704525
704531
712006
725339
725346
726882
726967
728060
728112
728115
728130
728131
728427
728458
728899
737315
742694
742820
747090
747135
752181
759718
761557
771804
771968
773041
773781
774171
774178
786160
786831
788260
788632
794776
797126
797769
799046
803595
805221
805224
805274
809271
811764
811993
]
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 (594166 , 603610 , 603652 , 612726 , 615660 , 615851 , 617087 , 620645 , 630547 , 633091 , 633124 , 646029 , 646108 , 670003 , 670032 , 670117 , 670234 , 670257 , 697700 , 702679 , 704218 , 704525 , 704531 , 712006 , 725339 , 725346 , 726882 , 726967 , 728060 , 728112 , 728115 , 728130 , 728131 , 728427 , 728458 , 728899 , 737315 , 742694 , 742820 , 747090 , 747135 , 752181 , 759718 , 761557 , 771804 , 771968 , 773041 , 773781 , 774171 , 774178 , 786160 , 786831 , 788260 , 788632 , 794776 , 797126 , 797769 , 799046 , 803595 , 805221 , 805224 , 805274 , 809271 , 811764 , 811993 );
Copy