3
10.52 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
396934
387448
187611
197736
358481
426003
397871
484685
470187
815529
466173
508660
791803
474674
513201
544524
130506
421995
466018
466238
761756
467619
474627
465963
474694
484629
466199
484739
412261
472276
466195
474681
474685
484700
474686
466239
448084
456614
463158
466209
471073
484646
484644
412262
466208
466215
468076
474696
474635
688071
428837
474695
456618
474693
470286
485269
474654
474663
484681
404678
472161
680267
561515
]
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 (396934 , 387448 , 187611 , 197736 , 358481 , 426003 , 397871 , 484685 , 470187 , 815529 , 466173 , 508660 , 791803 , 474674 , 513201 , 544524 , 130506 , 421995 , 466018 , 466238 , 761756 , 467619 , 474627 , 465963 , 474694 , 484629 , 466199 , 484739 , 412261 , 472276 , 466195 , 474681 , 474685 , 484700 , 474686 , 466239 , 448084 , 456614 , 463158 , 466209 , 471073 , 484646 , 484644 , 412262 , 466208 , 466215 , 468076 , 474696 , 474635 , 688071 , 428837 , 474695 , 456618 , 474693 , 470286 , 485269 , 474654 , 474663 , 484681 , 404678 , 472161 , 680267 , 561515 );
Copy
4
2.61 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
130506
187611
197736
358481
387448
396934
397871
404678
412261
412262
421995
426003
428837
448084
456614
456618
463158
465963
466018
466173
466195
466199
466208
466209
466215
466238
466239
467619
468076
470187
470286
471073
472161
472276
474627
474635
474654
474663
474674
474681
474685
474686
474693
474694
474695
474696
484629
484644
484646
484681
484685
484700
484739
485269
508660
513201
544524
561515
680267
688071
761756
791803
815529
]
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 (130506 , 187611 , 197736 , 358481 , 387448 , 396934 , 397871 , 404678 , 412261 , 412262 , 421995 , 426003 , 428837 , 448084 , 456614 , 456618 , 463158 , 465963 , 466018 , 466173 , 466195 , 466199 , 466208 , 466209 , 466215 , 466238 , 466239 , 467619 , 468076 , 470187 , 470286 , 471073 , 472161 , 472276 , 474627 , 474635 , 474654 , 474663 , 474674 , 474681 , 474685 , 474686 , 474693 , 474694 , 474695 , 474696 , 484629 , 484644 , 484646 , 484681 , 484685 , 484700 , 484739 , 485269 , 508660 , 513201 , 544524 , 561515 , 680267 , 688071 , 761756 , 791803 , 815529 );
Copy
5
84.77 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
130506
187611
197736
358481
387448
396934
397871
404678
412261
412262
421995
426003
428837
448084
456614
456618
463158
465963
466018
466173
466195
466199
466208
466209
466215
466238
466239
467619
468076
470187
470286
471073
472161
472276
474627
474635
474654
474663
474674
474681
474685
474686
474693
474694
474695
474696
484629
484644
484646
484681
484685
484700
484739
485269
508660
513201
544524
561515
680267
688071
761756
791803
815529
]
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 (130506 , 187611 , 197736 , 358481 , 387448 , 396934 , 397871 , 404678 , 412261 , 412262 , 421995 , 426003 , 428837 , 448084 , 456614 , 456618 , 463158 , 465963 , 466018 , 466173 , 466195 , 466199 , 466208 , 466209 , 466215 , 466238 , 466239 , 467619 , 468076 , 470187 , 470286 , 471073 , 472161 , 472276 , 474627 , 474635 , 474654 , 474663 , 474674 , 474681 , 474685 , 474686 , 474693 , 474694 , 474695 , 474696 , 484629 , 484644 , 484646 , 484681 , 484685 , 484700 , 484739 , 485269 , 508660 , 513201 , 544524 , 561515 , 680267 , 688071 , 761756 , 791803 , 815529 );
Copy