3
11.06 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
803795
804659
539797
556604
772059
796458
704117
763809
800443
533173
708983
631420
780573
556592
779275
776581
680543
664275
725704
752197
795213
797973
580886
818090
822512
654945
742659
709300
489894
727143
794780
810107
813416
810217
495617
820542
799848
555505
566116
465945
804554
420306
479312
590123
660843
764420
419096
553083
784059
808547
608029
516413
476841
523036
487421
643201
535303
476586
549226
444402
473434
556550
509437
636371
544052
571773
516521
524104
]
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 (803795 , 804659 , 539797 , 556604 , 772059 , 796458 , 704117 , 763809 , 800443 , 533173 , 708983 , 631420 , 780573 , 556592 , 779275 , 776581 , 680543 , 664275 , 725704 , 752197 , 795213 , 797973 , 580886 , 818090 , 822512 , 654945 , 742659 , 709300 , 489894 , 727143 , 794780 , 810107 , 813416 , 810217 , 495617 , 820542 , 799848 , 555505 , 566116 , 465945 , 804554 , 420306 , 479312 , 590123 , 660843 , 764420 , 419096 , 553083 , 784059 , 808547 , 608029 , 516413 , 476841 , 523036 , 487421 , 643201 , 535303 , 476586 , 549226 , 444402 , 473434 , 556550 , 509437 , 636371 , 544052 , 571773 , 516521 , 524104 );
Copy
4
3.49 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
419096
420306
444402
465945
473434
476586
476841
479312
487421
489894
495617
509437
516413
516521
523036
524104
533173
535303
539797
544052
549226
553083
555505
556550
556592
556604
566116
571773
580886
590123
608029
631420
636371
643201
654945
660843
664275
680543
704117
708983
709300
725704
727143
742659
752197
763809
764420
772059
776581
779275
780573
784059
794780
795213
796458
797973
799848
800443
803795
804554
804659
808547
810107
810217
813416
818090
820542
822512
]
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 (419096 , 420306 , 444402 , 465945 , 473434 , 476586 , 476841 , 479312 , 487421 , 489894 , 495617 , 509437 , 516413 , 516521 , 523036 , 524104 , 533173 , 535303 , 539797 , 544052 , 549226 , 553083 , 555505 , 556550 , 556592 , 556604 , 566116 , 571773 , 580886 , 590123 , 608029 , 631420 , 636371 , 643201 , 654945 , 660843 , 664275 , 680543 , 704117 , 708983 , 709300 , 725704 , 727143 , 742659 , 752197 , 763809 , 764420 , 772059 , 776581 , 779275 , 780573 , 784059 , 794780 , 795213 , 796458 , 797973 , 799848 , 800443 , 803795 , 804554 , 804659 , 808547 , 810107 , 810217 , 813416 , 818090 , 820542 , 822512 );
Copy
5
86.46 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
419096
420306
444402
465945
473434
476586
476841
479312
487421
489894
495617
509437
516413
516521
523036
524104
533173
535303
539797
544052
549226
553083
555505
556550
556592
556604
566116
571773
580886
590123
608029
631420
636371
643201
654945
660843
664275
680543
704117
708983
709300
725704
727143
742659
752197
763809
764420
772059
776581
779275
780573
784059
794780
795213
796458
797973
799848
800443
803795
804554
804659
808547
810107
810217
813416
818090
820542
822512
]
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 (419096 , 420306 , 444402 , 465945 , 473434 , 476586 , 476841 , 479312 , 487421 , 489894 , 495617 , 509437 , 516413 , 516521 , 523036 , 524104 , 533173 , 535303 , 539797 , 544052 , 549226 , 553083 , 555505 , 556550 , 556592 , 556604 , 566116 , 571773 , 580886 , 590123 , 608029 , 631420 , 636371 , 643201 , 654945 , 660843 , 664275 , 680543 , 704117 , 708983 , 709300 , 725704 , 727143 , 742659 , 752197 , 763809 , 764420 , 772059 , 776581 , 779275 , 780573 , 784059 , 794780 , 795213 , 796458 , 797973 , 799848 , 800443 , 803795 , 804554 , 804659 , 808547 , 810107 , 810217 , 813416 , 818090 , 820542 , 822512 );
Copy