3
13.27 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
688071
460742
462322
467619
470459
470287
490901
404678
478596
474696
428883
460609
484670
484700
485269
456615
682522
459243
468629
389458
484739
428837
481463
456614
624003
474627
484627
466208
589708
421995
474694
465963
474685
484722
514457
657768
474686
412297
640136
407571
468076
428126
466239
412262
453721
469039
474654
518559
484629
474693
557021
456618
412261
563198
546766
482507
597134
620754
484644
474663
412289
490204
554905
525154
526439
472161
571016
442257
495199
]
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 (688071 , 460742 , 462322 , 467619 , 470459 , 470287 , 490901 , 404678 , 478596 , 474696 , 428883 , 460609 , 484670 , 484700 , 485269 , 456615 , 682522 , 459243 , 468629 , 389458 , 484739 , 428837 , 481463 , 456614 , 624003 , 474627 , 484627 , 466208 , 589708 , 421995 , 474694 , 465963 , 474685 , 484722 , 514457 , 657768 , 474686 , 412297 , 640136 , 407571 , 468076 , 428126 , 466239 , 412262 , 453721 , 469039 , 474654 , 518559 , 484629 , 474693 , 557021 , 456618 , 412261 , 563198 , 546766 , 482507 , 597134 , 620754 , 484644 , 474663 , 412289 , 490204 , 554905 , 525154 , 526439 , 472161 , 571016 , 442257 , 495199 );
Copy
4
3.39 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
389458
404678
407571
412261
412262
412289
412297
421995
428126
428837
428883
442257
453721
456614
456615
456618
459243
460609
460742
462322
465963
466208
466239
467619
468076
468629
469039
470287
470459
472161
474627
474654
474663
474685
474686
474693
474694
474696
478596
481463
482507
484627
484629
484644
484670
484700
484722
484739
485269
490204
490901
495199
514457
518559
525154
526439
546766
554905
557021
563198
571016
589708
597134
620754
624003
640136
657768
682522
688071
]
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 (389458 , 404678 , 407571 , 412261 , 412262 , 412289 , 412297 , 421995 , 428126 , 428837 , 428883 , 442257 , 453721 , 456614 , 456615 , 456618 , 459243 , 460609 , 460742 , 462322 , 465963 , 466208 , 466239 , 467619 , 468076 , 468629 , 469039 , 470287 , 470459 , 472161 , 474627 , 474654 , 474663 , 474685 , 474686 , 474693 , 474694 , 474696 , 478596 , 481463 , 482507 , 484627 , 484629 , 484644 , 484670 , 484700 , 484722 , 484739 , 485269 , 490204 , 490901 , 495199 , 514457 , 518559 , 525154 , 526439 , 546766 , 554905 , 557021 , 563198 , 571016 , 589708 , 597134 , 620754 , 624003 , 640136 , 657768 , 682522 , 688071 );
Copy
5
102.95 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
389458
404678
407571
412261
412262
412289
412297
421995
428126
428837
428883
442257
453721
456614
456615
456618
459243
460609
460742
462322
465963
466208
466239
467619
468076
468629
469039
470287
470459
472161
474627
474654
474663
474685
474686
474693
474694
474696
478596
481463
482507
484627
484629
484644
484670
484700
484722
484739
485269
490204
490901
495199
514457
518559
525154
526439
546766
554905
557021
563198
571016
589708
597134
620754
624003
640136
657768
682522
688071
]
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 (389458 , 404678 , 407571 , 412261 , 412262 , 412289 , 412297 , 421995 , 428126 , 428837 , 428883 , 442257 , 453721 , 456614 , 456615 , 456618 , 459243 , 460609 , 460742 , 462322 , 465963 , 466208 , 466239 , 467619 , 468076 , 468629 , 469039 , 470287 , 470459 , 472161 , 474627 , 474654 , 474663 , 474685 , 474686 , 474693 , 474694 , 474696 , 478596 , 481463 , 482507 , 484627 , 484629 , 484644 , 484670 , 484700 , 484722 , 484739 , 485269 , 490204 , 490901 , 495199 , 514457 , 518559 , 525154 , 526439 , 546766 , 554905 , 557021 , 563198 , 571016 , 589708 , 597134 , 620754 , 624003 , 640136 , 657768 , 682522 , 688071 );
Copy