3
213.86 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
388208
782856
804934
710150
519401
726019
757184
813117
718143
622071
757285
648329
785941
788473
808023
575373
615343
580801
776637
728808
723162
515046
710666
523896
571037
550377
691787
776907
749106
756735
396093
437402
467633
554033
439249
527308
488881
449501
532509
522387
451311
520129
515605
818578
467991
624832
816773
754872
514109
496203
477621
778098
761838
687137
825302
560079
592510
792819
508580
612242
798881
467668
487945
564203
]
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 (388208 , 782856 , 804934 , 710150 , 519401 , 726019 , 757184 , 813117 , 718143 , 622071 , 757285 , 648329 , 785941 , 788473 , 808023 , 575373 , 615343 , 580801 , 776637 , 728808 , 723162 , 515046 , 710666 , 523896 , 571037 , 550377 , 691787 , 776907 , 749106 , 756735 , 396093 , 437402 , 467633 , 554033 , 439249 , 527308 , 488881 , 449501 , 532509 , 522387 , 451311 , 520129 , 515605 , 818578 , 467991 , 624832 , 816773 , 754872 , 514109 , 496203 , 477621 , 778098 , 761838 , 687137 , 825302 , 560079 , 592510 , 792819 , 508580 , 612242 , 798881 , 467668 , 487945 , 564203 );
Copy
4
2.70 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
388208
396093
437402
439249
449501
451311
467633
467668
467991
477621
487945
488881
496203
508580
514109
515046
515605
519401
520129
522387
523896
527308
532509
550377
554033
560079
564203
571037
575373
580801
592510
612242
615343
622071
624832
648329
687137
691787
710150
710666
718143
723162
726019
728808
749106
754872
756735
757184
757285
761838
776637
776907
778098
782856
785941
788473
792819
798881
804934
808023
813117
816773
818578
825302
]
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 (388208 , 396093 , 437402 , 439249 , 449501 , 451311 , 467633 , 467668 , 467991 , 477621 , 487945 , 488881 , 496203 , 508580 , 514109 , 515046 , 515605 , 519401 , 520129 , 522387 , 523896 , 527308 , 532509 , 550377 , 554033 , 560079 , 564203 , 571037 , 575373 , 580801 , 592510 , 612242 , 615343 , 622071 , 624832 , 648329 , 687137 , 691787 , 710150 , 710666 , 718143 , 723162 , 726019 , 728808 , 749106 , 754872 , 756735 , 757184 , 757285 , 761838 , 776637 , 776907 , 778098 , 782856 , 785941 , 788473 , 792819 , 798881 , 804934 , 808023 , 813117 , 816773 , 818578 , 825302 );
Copy
5
127.28 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
388208
396093
437402
439249
449501
451311
467633
467668
467991
477621
487945
488881
496203
508580
514109
515046
515605
519401
520129
522387
523896
527308
532509
550377
554033
560079
564203
571037
575373
580801
592510
612242
615343
622071
624832
648329
687137
691787
710150
710666
718143
723162
726019
728808
749106
754872
756735
757184
757285
761838
776637
776907
778098
782856
785941
788473
792819
798881
804934
808023
813117
816773
818578
825302
]
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 (388208 , 396093 , 437402 , 439249 , 449501 , 451311 , 467633 , 467668 , 467991 , 477621 , 487945 , 488881 , 496203 , 508580 , 514109 , 515046 , 515605 , 519401 , 520129 , 522387 , 523896 , 527308 , 532509 , 550377 , 554033 , 560079 , 564203 , 571037 , 575373 , 580801 , 592510 , 612242 , 615343 , 622071 , 624832 , 648329 , 687137 , 691787 , 710150 , 710666 , 718143 , 723162 , 726019 , 728808 , 749106 , 754872 , 756735 , 757184 , 757285 , 761838 , 776637 , 776907 , 778098 , 782856 , 785941 , 788473 , 792819 , 798881 , 804934 , 808023 , 813117 , 816773 , 818578 , 825302 );
Copy