3
8.65 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
726267
455595
579351
704738
799780
815686
827649
816009
732166
804832
715488
815836
794293
792608
773939
757669
778024
514352
814879
807166
807662
699517
774100
752800
769800
459273
815181
810954
348275
397829
688140
623234
816485
408277
712187
261656
815331
693292
498051
523533
722375
556890
607926
791855
496298
454679
521906
490877
494799
545636
559217
607799
552454
457318
584071
471859
519524
689015
524096
526517
527701
602739
]
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 (726267 , 455595 , 579351 , 704738 , 799780 , 815686 , 827649 , 816009 , 732166 , 804832 , 715488 , 815836 , 794293 , 792608 , 773939 , 757669 , 778024 , 514352 , 814879 , 807166 , 807662 , 699517 , 774100 , 752800 , 769800 , 459273 , 815181 , 810954 , 348275 , 397829 , 688140 , 623234 , 816485 , 408277 , 712187 , 261656 , 815331 , 693292 , 498051 , 523533 , 722375 , 556890 , 607926 , 791855 , 496298 , 454679 , 521906 , 490877 , 494799 , 545636 , 559217 , 607799 , 552454 , 457318 , 584071 , 471859 , 519524 , 689015 , 524096 , 526517 , 527701 , 602739 );
Copy
4
2.10 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
261656
348275
397829
408277
454679
455595
457318
459273
471859
490877
494799
496298
498051
514352
519524
521906
523533
524096
526517
527701
545636
552454
556890
559217
579351
584071
602739
607799
607926
623234
688140
689015
693292
699517
704738
712187
715488
722375
726267
732166
752800
757669
769800
773939
774100
778024
791855
792608
794293
799780
804832
807166
807662
810954
814879
815181
815331
815686
815836
816009
816485
827649
]
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 (261656 , 348275 , 397829 , 408277 , 454679 , 455595 , 457318 , 459273 , 471859 , 490877 , 494799 , 496298 , 498051 , 514352 , 519524 , 521906 , 523533 , 524096 , 526517 , 527701 , 545636 , 552454 , 556890 , 559217 , 579351 , 584071 , 602739 , 607799 , 607926 , 623234 , 688140 , 689015 , 693292 , 699517 , 704738 , 712187 , 715488 , 722375 , 726267 , 732166 , 752800 , 757669 , 769800 , 773939 , 774100 , 778024 , 791855 , 792608 , 794293 , 799780 , 804832 , 807166 , 807662 , 810954 , 814879 , 815181 , 815331 , 815686 , 815836 , 816009 , 816485 , 827649 );
Copy
5
66.71 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
261656
348275
397829
408277
454679
455595
457318
459273
471859
490877
494799
496298
498051
514352
519524
521906
523533
524096
526517
527701
545636
552454
556890
559217
579351
584071
602739
607799
607926
623234
688140
689015
693292
699517
704738
712187
715488
722375
726267
732166
752800
757669
769800
773939
774100
778024
791855
792608
794293
799780
804832
807166
807662
810954
814879
815181
815331
815686
815836
816009
816485
827649
]
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 (261656 , 348275 , 397829 , 408277 , 454679 , 455595 , 457318 , 459273 , 471859 , 490877 , 494799 , 496298 , 498051 , 514352 , 519524 , 521906 , 523533 , 524096 , 526517 , 527701 , 545636 , 552454 , 556890 , 559217 , 579351 , 584071 , 602739 , 607799 , 607926 , 623234 , 688140 , 689015 , 693292 , 699517 , 704738 , 712187 , 715488 , 722375 , 726267 , 732166 , 752800 , 757669 , 769800 , 773939 , 774100 , 778024 , 791855 , 792608 , 794293 , 799780 , 804832 , 807166 , 807662 , 810954 , 814879 , 815181 , 815331 , 815686 , 815836 , 816009 , 816485 , 827649 );
Copy