3
11.85 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
747832
623312
743345
706912
624858
735709
746882
716168
605353
742031
821560
599410
726703
752685
687374
391950
511724
386060
576020
747976
611977
398260
666130
610109
605930
494613
824735
733812
809359
740824
649645
801952
499506
461859
730076
402965
550377
566459
593299
593003
518917
411946
447337
557900
801560
726478
390747
600503
518289
443836
429153
492482
528146
434319
574407
559430
714380
590721
514796
577102
439733
467975
457963
475508
549638
632632
511009
471612
407168
562397
513539
533426
516727
625172
597240
]
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 (747832 , 623312 , 743345 , 706912 , 624858 , 735709 , 746882 , 716168 , 605353 , 742031 , 821560 , 599410 , 726703 , 752685 , 687374 , 391950 , 511724 , 386060 , 576020 , 747976 , 611977 , 398260 , 666130 , 610109 , 605930 , 494613 , 824735 , 733812 , 809359 , 740824 , 649645 , 801952 , 499506 , 461859 , 730076 , 402965 , 550377 , 566459 , 593299 , 593003 , 518917 , 411946 , 447337 , 557900 , 801560 , 726478 , 390747 , 600503 , 518289 , 443836 , 429153 , 492482 , 528146 , 434319 , 574407 , 559430 , 714380 , 590721 , 514796 , 577102 , 439733 , 467975 , 457963 , 475508 , 549638 , 632632 , 511009 , 471612 , 407168 , 562397 , 513539 , 533426 , 516727 , 625172 , 597240 );
Copy
4
3.24 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
386060
390747
391950
398260
402965
407168
411946
429153
434319
439733
443836
447337
457963
461859
467975
471612
475508
492482
494613
499506
511009
511724
513539
514796
516727
518289
518917
528146
533426
549638
550377
557900
559430
562397
566459
574407
576020
577102
590721
593003
593299
597240
599410
600503
605353
605930
610109
611977
623312
624858
625172
632632
649645
666130
687374
706912
714380
716168
726478
726703
730076
733812
735709
740824
742031
743345
746882
747832
747976
752685
801560
801952
809359
821560
824735
]
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 (386060 , 390747 , 391950 , 398260 , 402965 , 407168 , 411946 , 429153 , 434319 , 439733 , 443836 , 447337 , 457963 , 461859 , 467975 , 471612 , 475508 , 492482 , 494613 , 499506 , 511009 , 511724 , 513539 , 514796 , 516727 , 518289 , 518917 , 528146 , 533426 , 549638 , 550377 , 557900 , 559430 , 562397 , 566459 , 574407 , 576020 , 577102 , 590721 , 593003 , 593299 , 597240 , 599410 , 600503 , 605353 , 605930 , 610109 , 611977 , 623312 , 624858 , 625172 , 632632 , 649645 , 666130 , 687374 , 706912 , 714380 , 716168 , 726478 , 726703 , 730076 , 733812 , 735709 , 740824 , 742031 , 743345 , 746882 , 747832 , 747976 , 752685 , 801560 , 801952 , 809359 , 821560 , 824735 );
Copy
5
111.61 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
386060
390747
391950
398260
402965
407168
411946
429153
434319
439733
443836
447337
457963
461859
467975
471612
475508
492482
494613
499506
511009
511724
513539
514796
516727
518289
518917
528146
533426
549638
550377
557900
559430
562397
566459
574407
576020
577102
590721
593003
593299
597240
599410
600503
605353
605930
610109
611977
623312
624858
625172
632632
649645
666130
687374
706912
714380
716168
726478
726703
730076
733812
735709
740824
742031
743345
746882
747832
747976
752685
801560
801952
809359
821560
824735
]
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 (386060 , 390747 , 391950 , 398260 , 402965 , 407168 , 411946 , 429153 , 434319 , 439733 , 443836 , 447337 , 457963 , 461859 , 467975 , 471612 , 475508 , 492482 , 494613 , 499506 , 511009 , 511724 , 513539 , 514796 , 516727 , 518289 , 518917 , 528146 , 533426 , 549638 , 550377 , 557900 , 559430 , 562397 , 566459 , 574407 , 576020 , 577102 , 590721 , 593003 , 593299 , 597240 , 599410 , 600503 , 605353 , 605930 , 610109 , 611977 , 623312 , 624858 , 625172 , 632632 , 649645 , 666130 , 687374 , 706912 , 714380 , 716168 , 726478 , 726703 , 730076 , 733812 , 735709 , 740824 , 742031 , 743345 , 746882 , 747832 , 747976 , 752685 , 801560 , 801952 , 809359 , 821560 , 824735 );
Copy