3
13.20 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
731325
742669
769399
795584
813020
467303
425395
482129
446256
525229
474404
493238
565651
650528
669700
557345
603041
788881
697010
447143
462308
489621
498326
412424
526182
542084
558303
697026
621779
612804
437530
527032
497066
452967
517602
501841
542790
585753
594487
624090
627749
445739
472665
479814
525635
517125
447036
453558
482289
445735
542753
720288
571682
622978
619692
446394
447031
517455
603218
623306
529345
593269
524018
517775
]
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 (731325 , 742669 , 769399 , 795584 , 813020 , 467303 , 425395 , 482129 , 446256 , 525229 , 474404 , 493238 , 565651 , 650528 , 669700 , 557345 , 603041 , 788881 , 697010 , 447143 , 462308 , 489621 , 498326 , 412424 , 526182 , 542084 , 558303 , 697026 , 621779 , 612804 , 437530 , 527032 , 497066 , 452967 , 517602 , 501841 , 542790 , 585753 , 594487 , 624090 , 627749 , 445739 , 472665 , 479814 , 525635 , 517125 , 447036 , 453558 , 482289 , 445735 , 542753 , 720288 , 571682 , 622978 , 619692 , 446394 , 447031 , 517455 , 603218 , 623306 , 529345 , 593269 , 524018 , 517775 );
Copy
4
3.04 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
412424
425395
437530
445735
445739
446256
446394
447031
447036
447143
452967
453558
462308
467303
472665
474404
479814
482129
482289
489621
493238
497066
498326
501841
517125
517455
517602
517775
524018
525229
525635
526182
527032
529345
542084
542753
542790
557345
558303
565651
571682
585753
593269
594487
603041
603218
612804
619692
621779
622978
623306
624090
627749
650528
669700
697010
697026
720288
731325
742669
769399
788881
795584
813020
]
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 (412424 , 425395 , 437530 , 445735 , 445739 , 446256 , 446394 , 447031 , 447036 , 447143 , 452967 , 453558 , 462308 , 467303 , 472665 , 474404 , 479814 , 482129 , 482289 , 489621 , 493238 , 497066 , 498326 , 501841 , 517125 , 517455 , 517602 , 517775 , 524018 , 525229 , 525635 , 526182 , 527032 , 529345 , 542084 , 542753 , 542790 , 557345 , 558303 , 565651 , 571682 , 585753 , 593269 , 594487 , 603041 , 603218 , 612804 , 619692 , 621779 , 622978 , 623306 , 624090 , 627749 , 650528 , 669700 , 697010 , 697026 , 720288 , 731325 , 742669 , 769399 , 788881 , 795584 , 813020 );
Copy
5
108.37 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
412424
425395
437530
445735
445739
446256
446394
447031
447036
447143
452967
453558
462308
467303
472665
474404
479814
482129
482289
489621
493238
497066
498326
501841
517125
517455
517602
517775
524018
525229
525635
526182
527032
529345
542084
542753
542790
557345
558303
565651
571682
585753
593269
594487
603041
603218
612804
619692
621779
622978
623306
624090
627749
650528
669700
697010
697026
720288
731325
742669
769399
788881
795584
813020
]
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 (412424 , 425395 , 437530 , 445735 , 445739 , 446256 , 446394 , 447031 , 447036 , 447143 , 452967 , 453558 , 462308 , 467303 , 472665 , 474404 , 479814 , 482129 , 482289 , 489621 , 493238 , 497066 , 498326 , 501841 , 517125 , 517455 , 517602 , 517775 , 524018 , 525229 , 525635 , 526182 , 527032 , 529345 , 542084 , 542753 , 542790 , 557345 , 558303 , 565651 , 571682 , 585753 , 593269 , 594487 , 603041 , 603218 , 612804 , 619692 , 621779 , 622978 , 623306 , 624090 , 627749 , 650528 , 669700 , 697010 , 697026 , 720288 , 731325 , 742669 , 769399 , 788881 , 795584 , 813020 );
Copy