3
11.18 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
668706
790808
398497
463189
551928
452934
790128
466925
462701
548393
16808
668694
453124
466802
552060
543945
565703
398539
755941
384752
404030
452415
548232
475678
472631
413461
479063
146235
414038
450172
463803
470296
401638
384588
803684
455910
467035
827668
644222
812526
760176
385638
554525
790094
731159
461010
450149
603378
384220
404194
407773
472678
480755
549250
474813
466259
381835
454186
486485
475679
525490
516653
475660
475676
466779
529341
502467
482304
]
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 (668706 , 790808 , 398497 , 463189 , 551928 , 452934 , 790128 , 466925 , 462701 , 548393 , 16808 , 668694 , 453124 , 466802 , 552060 , 543945 , 565703 , 398539 , 755941 , 384752 , 404030 , 452415 , 548232 , 475678 , 472631 , 413461 , 479063 , 146235 , 414038 , 450172 , 463803 , 470296 , 401638 , 384588 , 803684 , 455910 , 467035 , 827668 , 644222 , 812526 , 760176 , 385638 , 554525 , 790094 , 731159 , 461010 , 450149 , 603378 , 384220 , 404194 , 407773 , 472678 , 480755 , 549250 , 474813 , 466259 , 381835 , 454186 , 486485 , 475679 , 525490 , 516653 , 475660 , 475676 , 466779 , 529341 , 502467 , 482304 );
Copy
4
2.43 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
16808
146235
381835
384220
384588
384752
385638
398497
398539
401638
404030
404194
407773
413461
414038
450149
450172
452415
452934
453124
454186
455910
461010
462701
463189
463803
466259
466779
466802
466925
467035
470296
472631
472678
474813
475660
475676
475678
475679
479063
480755
482304
486485
502467
516653
525490
529341
543945
548232
548393
549250
551928
552060
554525
565703
603378
644222
668694
668706
731159
755941
760176
790094
790128
790808
803684
812526
827668
]
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 (16808 , 146235 , 381835 , 384220 , 384588 , 384752 , 385638 , 398497 , 398539 , 401638 , 404030 , 404194 , 407773 , 413461 , 414038 , 450149 , 450172 , 452415 , 452934 , 453124 , 454186 , 455910 , 461010 , 462701 , 463189 , 463803 , 466259 , 466779 , 466802 , 466925 , 467035 , 470296 , 472631 , 472678 , 474813 , 475660 , 475676 , 475678 , 475679 , 479063 , 480755 , 482304 , 486485 , 502467 , 516653 , 525490 , 529341 , 543945 , 548232 , 548393 , 549250 , 551928 , 552060 , 554525 , 565703 , 603378 , 644222 , 668694 , 668706 , 731159 , 755941 , 760176 , 790094 , 790128 , 790808 , 803684 , 812526 , 827668 );
Copy
5
83.84 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
16808
146235
381835
384220
384588
384752
385638
398497
398539
401638
404030
404194
407773
413461
414038
450149
450172
452415
452934
453124
454186
455910
461010
462701
463189
463803
466259
466779
466802
466925
467035
470296
472631
472678
474813
475660
475676
475678
475679
479063
480755
482304
486485
502467
516653
525490
529341
543945
548232
548393
549250
551928
552060
554525
565703
603378
644222
668694
668706
731159
755941
760176
790094
790128
790808
803684
812526
827668
]
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 (16808 , 146235 , 381835 , 384220 , 384588 , 384752 , 385638 , 398497 , 398539 , 401638 , 404030 , 404194 , 407773 , 413461 , 414038 , 450149 , 450172 , 452415 , 452934 , 453124 , 454186 , 455910 , 461010 , 462701 , 463189 , 463803 , 466259 , 466779 , 466802 , 466925 , 467035 , 470296 , 472631 , 472678 , 474813 , 475660 , 475676 , 475678 , 475679 , 479063 , 480755 , 482304 , 486485 , 502467 , 516653 , 525490 , 529341 , 543945 , 548232 , 548393 , 549250 , 551928 , 552060 , 554525 , 565703 , 603378 , 644222 , 668694 , 668706 , 731159 , 755941 , 760176 , 790094 , 790128 , 790808 , 803684 , 812526 , 827668 );
Copy