3
11.13 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
800308
775236
511843
811062
445068
596729
750862
782110
753029
642745
811070
744361
567484
795768
814490
810218
813666
808084
727396
781370
467666
583357
535688
603090
765534
741549
649937
811038
808538
710722
666820
680740
640891
673229
807753
721990
805684
526142
673203
672269
738502
403904
590590
810245
557056
793341
484952
468881
761496
636245
446704
535420
461678
477120
447956
575932
461686
468332
618852
452648
458530
453758
536724
468865
760952
515935
801165
572198
535422
420277
583566
516429
509454
527412
]
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 (800308 , 775236 , 511843 , 811062 , 445068 , 596729 , 750862 , 782110 , 753029 , 642745 , 811070 , 744361 , 567484 , 795768 , 814490 , 810218 , 813666 , 808084 , 727396 , 781370 , 467666 , 583357 , 535688 , 603090 , 765534 , 741549 , 649937 , 811038 , 808538 , 710722 , 666820 , 680740 , 640891 , 673229 , 807753 , 721990 , 805684 , 526142 , 673203 , 672269 , 738502 , 403904 , 590590 , 810245 , 557056 , 793341 , 484952 , 468881 , 761496 , 636245 , 446704 , 535420 , 461678 , 477120 , 447956 , 575932 , 461686 , 468332 , 618852 , 452648 , 458530 , 453758 , 536724 , 468865 , 760952 , 515935 , 801165 , 572198 , 535422 , 420277 , 583566 , 516429 , 509454 , 527412 );
Copy
4
2.87 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
446704
447956
452648
453758
458530
461678
461686
467666
468332
468865
468881
477120
484952
509454
511843
515935
516429
526142
527412
535420
535422
535688
536724
557056
567484
572198
575932
583357
583566
590590
596729
603090
618852
636245
640891
642745
649937
666820
672269
673203
673229
680740
710722
721990
727396
738502
741549
744361
750862
753029
760952
761496
765534
775236
781370
782110
793341
795768
800308
801165
805684
807753
808084
808538
810218
810245
811038
811062
811070
813666
814490
]
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 , 446704 , 447956 , 452648 , 453758 , 458530 , 461678 , 461686 , 467666 , 468332 , 468865 , 468881 , 477120 , 484952 , 509454 , 511843 , 515935 , 516429 , 526142 , 527412 , 535420 , 535422 , 535688 , 536724 , 557056 , 567484 , 572198 , 575932 , 583357 , 583566 , 590590 , 596729 , 603090 , 618852 , 636245 , 640891 , 642745 , 649937 , 666820 , 672269 , 673203 , 673229 , 680740 , 710722 , 721990 , 727396 , 738502 , 741549 , 744361 , 750862 , 753029 , 760952 , 761496 , 765534 , 775236 , 781370 , 782110 , 793341 , 795768 , 800308 , 801165 , 805684 , 807753 , 808084 , 808538 , 810218 , 810245 , 811038 , 811062 , 811070 , 813666 , 814490 );
Copy
5
83.80 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
446704
447956
452648
453758
458530
461678
461686
467666
468332
468865
468881
477120
484952
509454
511843
515935
516429
526142
527412
535420
535422
535688
536724
557056
567484
572198
575932
583357
583566
590590
596729
603090
618852
636245
640891
642745
649937
666820
672269
673203
673229
680740
710722
721990
727396
738502
741549
744361
750862
753029
760952
761496
765534
775236
781370
782110
793341
795768
800308
801165
805684
807753
808084
808538
810218
810245
811038
811062
811070
813666
814490
]
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 , 446704 , 447956 , 452648 , 453758 , 458530 , 461678 , 461686 , 467666 , 468332 , 468865 , 468881 , 477120 , 484952 , 509454 , 511843 , 515935 , 516429 , 526142 , 527412 , 535420 , 535422 , 535688 , 536724 , 557056 , 567484 , 572198 , 575932 , 583357 , 583566 , 590590 , 596729 , 603090 , 618852 , 636245 , 640891 , 642745 , 649937 , 666820 , 672269 , 673203 , 673229 , 680740 , 710722 , 721990 , 727396 , 738502 , 741549 , 744361 , 750862 , 753029 , 760952 , 761496 , 765534 , 775236 , 781370 , 782110 , 793341 , 795768 , 800308 , 801165 , 805684 , 807753 , 808084 , 808538 , 810218 , 810245 , 811038 , 811062 , 811070 , 813666 , 814490 );
Copy