3
11.37 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
529340
537824
517735
582972
547536
663485
678794
720289
545968
593429
593540
603254
811013
728385
712826
712828
411942
755684
726910
538530
560563
387123
454227
457303
466779
515089
517245
514337
544024
543938
563134
672954
590289
593059
593541
603384
742849
426550
529341
487364
529312
515086
541570
545982
650614
667646
587987
593529
391943
452936
411946
484157
477200
563422
566153
448696
465317
453108
665465
454210
455151
583033
480757
447705
545247
388784
454221
467009
471976
470026
472618
486432
474118
489831
]
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 (529340 , 537824 , 517735 , 582972 , 547536 , 663485 , 678794 , 720289 , 545968 , 593429 , 593540 , 603254 , 811013 , 728385 , 712826 , 712828 , 411942 , 755684 , 726910 , 538530 , 560563 , 387123 , 454227 , 457303 , 466779 , 515089 , 517245 , 514337 , 544024 , 543938 , 563134 , 672954 , 590289 , 593059 , 593541 , 603384 , 742849 , 426550 , 529341 , 487364 , 529312 , 515086 , 541570 , 545982 , 650614 , 667646 , 587987 , 593529 , 391943 , 452936 , 411946 , 484157 , 477200 , 563422 , 566153 , 448696 , 465317 , 453108 , 665465 , 454210 , 455151 , 583033 , 480757 , 447705 , 545247 , 388784 , 454221 , 467009 , 471976 , 470026 , 472618 , 486432 , 474118 , 489831 );
Copy
4
2.73 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
387123
388784
391943
411942
411946
426550
447705
448696
452936
453108
454210
454221
454227
455151
457303
465317
466779
467009
470026
471976
472618
474118
477200
480757
484157
486432
487364
489831
514337
515086
515089
517245
517735
529312
529340
529341
537824
538530
541570
543938
544024
545247
545968
545982
547536
560563
563134
563422
566153
582972
583033
587987
590289
593059
593429
593529
593540
593541
603254
603384
650614
663485
665465
667646
672954
678794
712826
712828
720289
726910
728385
742849
755684
811013
]
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 (387123 , 388784 , 391943 , 411942 , 411946 , 426550 , 447705 , 448696 , 452936 , 453108 , 454210 , 454221 , 454227 , 455151 , 457303 , 465317 , 466779 , 467009 , 470026 , 471976 , 472618 , 474118 , 477200 , 480757 , 484157 , 486432 , 487364 , 489831 , 514337 , 515086 , 515089 , 517245 , 517735 , 529312 , 529340 , 529341 , 537824 , 538530 , 541570 , 543938 , 544024 , 545247 , 545968 , 545982 , 547536 , 560563 , 563134 , 563422 , 566153 , 582972 , 583033 , 587987 , 590289 , 593059 , 593429 , 593529 , 593540 , 593541 , 603254 , 603384 , 650614 , 663485 , 665465 , 667646 , 672954 , 678794 , 712826 , 712828 , 720289 , 726910 , 728385 , 742849 , 755684 , 811013 );
Copy
5
81.05 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
387123
388784
391943
411942
411946
426550
447705
448696
452936
453108
454210
454221
454227
455151
457303
465317
466779
467009
470026
471976
472618
474118
477200
480757
484157
486432
487364
489831
514337
515086
515089
517245
517735
529312
529340
529341
537824
538530
541570
543938
544024
545247
545968
545982
547536
560563
563134
563422
566153
582972
583033
587987
590289
593059
593429
593529
593540
593541
603254
603384
650614
663485
665465
667646
672954
678794
712826
712828
720289
726910
728385
742849
755684
811013
]
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 (387123 , 388784 , 391943 , 411942 , 411946 , 426550 , 447705 , 448696 , 452936 , 453108 , 454210 , 454221 , 454227 , 455151 , 457303 , 465317 , 466779 , 467009 , 470026 , 471976 , 472618 , 474118 , 477200 , 480757 , 484157 , 486432 , 487364 , 489831 , 514337 , 515086 , 515089 , 517245 , 517735 , 529312 , 529340 , 529341 , 537824 , 538530 , 541570 , 543938 , 544024 , 545247 , 545968 , 545982 , 547536 , 560563 , 563134 , 563422 , 566153 , 582972 , 583033 , 587987 , 590289 , 593059 , 593429 , 593529 , 593540 , 593541 , 603254 , 603384 , 650614 , 663485 , 665465 , 667646 , 672954 , 678794 , 712826 , 712828 , 720289 , 726910 , 728385 , 742849 , 755684 , 811013 );
Copy