3
9.78 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
680740
808538
596729
672269
557056
811062
452648
527412
820731
655876
826852
697967
782110
753029
709597
800308
824582
811070
726460
814490
567484
776225
795768
467666
808084
810218
727396
583357
741549
765534
710722
535688
649937
706222
775236
811038
673203
640891
673229
738502
403904
590590
484952
468881
526142
805684
511843
793341
810245
461686
575932
588017
618852
461678
468332
447956
535420
458530
760952
515935
445068
420277
535422
801165
583566
572198
516429
509454
]
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 (680740 , 808538 , 596729 , 672269 , 557056 , 811062 , 452648 , 527412 , 820731 , 655876 , 826852 , 697967 , 782110 , 753029 , 709597 , 800308 , 824582 , 811070 , 726460 , 814490 , 567484 , 776225 , 795768 , 467666 , 808084 , 810218 , 727396 , 583357 , 741549 , 765534 , 710722 , 535688 , 649937 , 706222 , 775236 , 811038 , 673203 , 640891 , 673229 , 738502 , 403904 , 590590 , 484952 , 468881 , 526142 , 805684 , 511843 , 793341 , 810245 , 461686 , 575932 , 588017 , 618852 , 461678 , 468332 , 447956 , 535420 , 458530 , 760952 , 515935 , 445068 , 420277 , 535422 , 801165 , 583566 , 572198 , 516429 , 509454 );
Copy
4
2.72 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
403904
420277
445068
447956
452648
458530
461678
461686
467666
468332
468881
484952
509454
511843
515935
516429
526142
527412
535420
535422
535688
557056
567484
572198
575932
583357
583566
588017
590590
596729
618852
640891
649937
655876
672269
673203
673229
680740
697967
706222
709597
710722
726460
727396
738502
741549
753029
760952
765534
775236
776225
782110
793341
795768
800308
801165
805684
808084
808538
810218
810245
811038
811062
811070
814490
820731
824582
826852
]
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 (403904 , 420277 , 445068 , 447956 , 452648 , 458530 , 461678 , 461686 , 467666 , 468332 , 468881 , 484952 , 509454 , 511843 , 515935 , 516429 , 526142 , 527412 , 535420 , 535422 , 535688 , 557056 , 567484 , 572198 , 575932 , 583357 , 583566 , 588017 , 590590 , 596729 , 618852 , 640891 , 649937 , 655876 , 672269 , 673203 , 673229 , 680740 , 697967 , 706222 , 709597 , 710722 , 726460 , 727396 , 738502 , 741549 , 753029 , 760952 , 765534 , 775236 , 776225 , 782110 , 793341 , 795768 , 800308 , 801165 , 805684 , 808084 , 808538 , 810218 , 810245 , 811038 , 811062 , 811070 , 814490 , 820731 , 824582 , 826852 );
Copy
5
81.42 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
403904
420277
445068
447956
452648
458530
461678
461686
467666
468332
468881
484952
509454
511843
515935
516429
526142
527412
535420
535422
535688
557056
567484
572198
575932
583357
583566
588017
590590
596729
618852
640891
649937
655876
672269
673203
673229
680740
697967
706222
709597
710722
726460
727396
738502
741549
753029
760952
765534
775236
776225
782110
793341
795768
800308
801165
805684
808084
808538
810218
810245
811038
811062
811070
814490
820731
824582
826852
]
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 (403904 , 420277 , 445068 , 447956 , 452648 , 458530 , 461678 , 461686 , 467666 , 468332 , 468881 , 484952 , 509454 , 511843 , 515935 , 516429 , 526142 , 527412 , 535420 , 535422 , 535688 , 557056 , 567484 , 572198 , 575932 , 583357 , 583566 , 588017 , 590590 , 596729 , 618852 , 640891 , 649937 , 655876 , 672269 , 673203 , 673229 , 680740 , 697967 , 706222 , 709597 , 710722 , 726460 , 727396 , 738502 , 741549 , 753029 , 760952 , 765534 , 775236 , 776225 , 782110 , 793341 , 795768 , 800308 , 801165 , 805684 , 808084 , 808538 , 810218 , 810245 , 811038 , 811062 , 811070 , 814490 , 820731 , 824582 , 826852 );
Copy