3
11.61 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
393043
772087
610017
795074
388391
623509
557237
805919
662078
566605
717921
757158
420808
460953
742480
566042
214988
784627
327421
800255
748685
616612
637115
632605
600628
443602
653308
405203
572737
527110
773084
623542
712719
628422
512190
699602
580272
809462
534985
542207
407156
672222
719765
637421
702852
560154
761464
634193
532798
704156
531196
535051
422512
639783
577473
536214
782490
579359
532838
543812
632571
532751
497935
532812
]
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 (393043 , 772087 , 610017 , 795074 , 388391 , 623509 , 557237 , 805919 , 662078 , 566605 , 717921 , 757158 , 420808 , 460953 , 742480 , 566042 , 214988 , 784627 , 327421 , 800255 , 748685 , 616612 , 637115 , 632605 , 600628 , 443602 , 653308 , 405203 , 572737 , 527110 , 773084 , 623542 , 712719 , 628422 , 512190 , 699602 , 580272 , 809462 , 534985 , 542207 , 407156 , 672222 , 719765 , 637421 , 702852 , 560154 , 761464 , 634193 , 532798 , 704156 , 531196 , 535051 , 422512 , 639783 , 577473 , 536214 , 782490 , 579359 , 532838 , 543812 , 632571 , 532751 , 497935 , 532812 );
Copy
4
2.29 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
214988
327421
388391
393043
405203
407156
420808
422512
443602
460953
497935
512190
527110
531196
532751
532798
532812
532838
534985
535051
536214
542207
543812
557237
560154
566042
566605
572737
577473
579359
580272
600628
610017
616612
623509
623542
628422
632571
632605
634193
637115
637421
639783
653308
662078
672222
699602
702852
704156
712719
717921
719765
742480
748685
757158
761464
772087
773084
782490
784627
795074
800255
805919
809462
]
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 (214988 , 327421 , 388391 , 393043 , 405203 , 407156 , 420808 , 422512 , 443602 , 460953 , 497935 , 512190 , 527110 , 531196 , 532751 , 532798 , 532812 , 532838 , 534985 , 535051 , 536214 , 542207 , 543812 , 557237 , 560154 , 566042 , 566605 , 572737 , 577473 , 579359 , 580272 , 600628 , 610017 , 616612 , 623509 , 623542 , 628422 , 632571 , 632605 , 634193 , 637115 , 637421 , 639783 , 653308 , 662078 , 672222 , 699602 , 702852 , 704156 , 712719 , 717921 , 719765 , 742480 , 748685 , 757158 , 761464 , 772087 , 773084 , 782490 , 784627 , 795074 , 800255 , 805919 , 809462 );
Copy
5
92.52 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
214988
327421
388391
393043
405203
407156
420808
422512
443602
460953
497935
512190
527110
531196
532751
532798
532812
532838
534985
535051
536214
542207
543812
557237
560154
566042
566605
572737
577473
579359
580272
600628
610017
616612
623509
623542
628422
632571
632605
634193
637115
637421
639783
653308
662078
672222
699602
702852
704156
712719
717921
719765
742480
748685
757158
761464
772087
773084
782490
784627
795074
800255
805919
809462
]
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 (214988 , 327421 , 388391 , 393043 , 405203 , 407156 , 420808 , 422512 , 443602 , 460953 , 497935 , 512190 , 527110 , 531196 , 532751 , 532798 , 532812 , 532838 , 534985 , 535051 , 536214 , 542207 , 543812 , 557237 , 560154 , 566042 , 566605 , 572737 , 577473 , 579359 , 580272 , 600628 , 610017 , 616612 , 623509 , 623542 , 628422 , 632571 , 632605 , 634193 , 637115 , 637421 , 639783 , 653308 , 662078 , 672222 , 699602 , 702852 , 704156 , 712719 , 717921 , 719765 , 742480 , 748685 , 757158 , 761464 , 772087 , 773084 , 782490 , 784627 , 795074 , 800255 , 805919 , 809462 );
Copy