3
11.05 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
798858
804844
711622
786877
722148
578866
746578
810088
812618
811426
764068
551068
773292
796067
792463
689404
710547
801509
426224
519593
444907
697958
749172
666010
812722
653384
551004
760345
629826
779238
772336
708677
516088
731215
794235
746537
782680
809913
775455
498832
774691
753044
737860
753054
664485
587554
641928
453481
512485
542507
555426
770928
537483
799385
562705
673664
440663
569299
528055
396308
456535
526293
618888
809272
600215
517450
624984
502817
599863
516308
589574
656465
469424
659115
605521
626062
]
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 (798858 , 804844 , 711622 , 786877 , 722148 , 578866 , 746578 , 810088 , 812618 , 811426 , 764068 , 551068 , 773292 , 796067 , 792463 , 689404 , 710547 , 801509 , 426224 , 519593 , 444907 , 697958 , 749172 , 666010 , 812722 , 653384 , 551004 , 760345 , 629826 , 779238 , 772336 , 708677 , 516088 , 731215 , 794235 , 746537 , 782680 , 809913 , 775455 , 498832 , 774691 , 753044 , 737860 , 753054 , 664485 , 587554 , 641928 , 453481 , 512485 , 542507 , 555426 , 770928 , 537483 , 799385 , 562705 , 673664 , 440663 , 569299 , 528055 , 396308 , 456535 , 526293 , 618888 , 809272 , 600215 , 517450 , 624984 , 502817 , 599863 , 516308 , 589574 , 656465 , 469424 , 659115 , 605521 , 626062 );
Copy
4
2.53 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
396308
426224
440663
444907
453481
456535
469424
498832
502817
512485
516088
516308
517450
519593
526293
528055
537483
542507
551004
551068
555426
562705
569299
578866
587554
589574
599863
600215
605521
618888
624984
626062
629826
641928
653384
656465
659115
664485
666010
673664
689404
697958
708677
710547
711622
722148
731215
737860
746537
746578
749172
753044
753054
760345
764068
770928
772336
774691
775455
779238
782680
786877
792463
794235
796067
798858
799385
801509
804844
809272
809913
810088
811426
812618
812722
]
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 (396308 , 426224 , 440663 , 444907 , 453481 , 456535 , 469424 , 498832 , 502817 , 512485 , 516088 , 516308 , 517450 , 519593 , 526293 , 528055 , 537483 , 542507 , 551004 , 551068 , 555426 , 562705 , 569299 , 578866 , 587554 , 589574 , 599863 , 600215 , 605521 , 618888 , 624984 , 626062 , 629826 , 641928 , 653384 , 656465 , 659115 , 664485 , 666010 , 673664 , 689404 , 697958 , 708677 , 710547 , 711622 , 722148 , 731215 , 737860 , 746537 , 746578 , 749172 , 753044 , 753054 , 760345 , 764068 , 770928 , 772336 , 774691 , 775455 , 779238 , 782680 , 786877 , 792463 , 794235 , 796067 , 798858 , 799385 , 801509 , 804844 , 809272 , 809913 , 810088 , 811426 , 812618 , 812722 );
Copy
5
93.45 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
396308
426224
440663
444907
453481
456535
469424
498832
502817
512485
516088
516308
517450
519593
526293
528055
537483
542507
551004
551068
555426
562705
569299
578866
587554
589574
599863
600215
605521
618888
624984
626062
629826
641928
653384
656465
659115
664485
666010
673664
689404
697958
708677
710547
711622
722148
731215
737860
746537
746578
749172
753044
753054
760345
764068
770928
772336
774691
775455
779238
782680
786877
792463
794235
796067
798858
799385
801509
804844
809272
809913
810088
811426
812618
812722
]
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 (396308 , 426224 , 440663 , 444907 , 453481 , 456535 , 469424 , 498832 , 502817 , 512485 , 516088 , 516308 , 517450 , 519593 , 526293 , 528055 , 537483 , 542507 , 551004 , 551068 , 555426 , 562705 , 569299 , 578866 , 587554 , 589574 , 599863 , 600215 , 605521 , 618888 , 624984 , 626062 , 629826 , 641928 , 653384 , 656465 , 659115 , 664485 , 666010 , 673664 , 689404 , 697958 , 708677 , 710547 , 711622 , 722148 , 731215 , 737860 , 746537 , 746578 , 749172 , 753044 , 753054 , 760345 , 764068 , 770928 , 772336 , 774691 , 775455 , 779238 , 782680 , 786877 , 792463 , 794235 , 796067 , 798858 , 799385 , 801509 , 804844 , 809272 , 809913 , 810088 , 811426 , 812618 , 812722 );
Copy