3
11.27 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
801949
609898
609926
452575
396352
560211
718785
779840
798243
806688
796351
469042
718678
413584
460208
514828
535279
546987
491273
514080
545430
263144
429119
454009
566320
495694
486784
495747
595209
807580
809290
418219
514399
395291
391604
435078
529998
501313
419758
516025
616036
411884
435024
446386
462850
526894
756413
756479
752682
432936
680484
596929
406089
564327
614858
400735
568379
478973
398426
577435
593096
447896
645012
524508
464445
182206
642044
624742
]
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 (801949 , 609898 , 609926 , 452575 , 396352 , 560211 , 718785 , 779840 , 798243 , 806688 , 796351 , 469042 , 718678 , 413584 , 460208 , 514828 , 535279 , 546987 , 491273 , 514080 , 545430 , 263144 , 429119 , 454009 , 566320 , 495694 , 486784 , 495747 , 595209 , 807580 , 809290 , 418219 , 514399 , 395291 , 391604 , 435078 , 529998 , 501313 , 419758 , 516025 , 616036 , 411884 , 435024 , 446386 , 462850 , 526894 , 756413 , 756479 , 752682 , 432936 , 680484 , 596929 , 406089 , 564327 , 614858 , 400735 , 568379 , 478973 , 398426 , 577435 , 593096 , 447896 , 645012 , 524508 , 464445 , 182206 , 642044 , 624742 );
Copy
4
3.30 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
182206
263144
391604
395291
396352
398426
400735
406089
411884
413584
418219
419758
429119
432936
435024
435078
446386
447896
452575
454009
460208
462850
464445
469042
478973
486784
491273
495694
495747
501313
514080
514399
514828
516025
524508
526894
529998
535279
545430
546987
560211
564327
566320
568379
577435
593096
595209
596929
609898
609926
614858
616036
624742
642044
645012
680484
718678
718785
752682
756413
756479
779840
796351
798243
801949
806688
809290
]
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 (182206 , 263144 , 391604 , 395291 , 396352 , 398426 , 400735 , 406089 , 411884 , 413584 , 418219 , 419758 , 429119 , 432936 , 435024 , 435078 , 446386 , 447896 , 452575 , 454009 , 460208 , 462850 , 464445 , 469042 , 478973 , 486784 , 491273 , 495694 , 495747 , 501313 , 514080 , 514399 , 514828 , 516025 , 524508 , 526894 , 529998 , 535279 , 545430 , 546987 , 560211 , 564327 , 566320 , 568379 , 577435 , 593096 , 595209 , 596929 , 609898 , 609926 , 614858 , 616036 , 624742 , 642044 , 645012 , 680484 , 718678 , 718785 , 752682 , 756413 , 756479 , 779840 , 796351 , 798243 , 801949 , 806688 , 809290 );
Copy
5
87.38 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
182206
263144
391604
395291
396352
398426
400735
406089
411884
413584
418219
419758
429119
432936
435024
435078
446386
447896
452575
454009
460208
462850
464445
469042
478973
486784
491273
495694
495747
501313
514080
514399
514828
516025
524508
526894
529998
535279
545430
546987
560211
564327
566320
568379
577435
593096
595209
596929
609898
609926
614858
616036
624742
642044
645012
680484
718678
718785
752682
756413
756479
779840
796351
798243
801949
806688
809290
]
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 (182206 , 263144 , 391604 , 395291 , 396352 , 398426 , 400735 , 406089 , 411884 , 413584 , 418219 , 419758 , 429119 , 432936 , 435024 , 435078 , 446386 , 447896 , 452575 , 454009 , 460208 , 462850 , 464445 , 469042 , 478973 , 486784 , 491273 , 495694 , 495747 , 501313 , 514080 , 514399 , 514828 , 516025 , 524508 , 526894 , 529998 , 535279 , 545430 , 546987 , 560211 , 564327 , 566320 , 568379 , 577435 , 593096 , 595209 , 596929 , 609898 , 609926 , 614858 , 616036 , 624742 , 642044 , 645012 , 680484 , 718678 , 718785 , 752682 , 756413 , 756479 , 779840 , 796351 , 798243 , 801949 , 806688 , 809290 );
Copy