4
12.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
721935
596828
596968
607926
619955
621458
790689
808416
736775
766374
742326
757402
615710
475444
446579
448169
522931
504995
418741
814885
505702
556568
564964
662113
585266
602470
613791
596963
758026
782538
450220
507452
505878
822946
452680
457577
457569
471109
477631
540622
544777
584077
547755
554631
561507
573451
643317
585325
467215
463426
535414
517579
517832
521505
517245
709646
559930
621354
502749
504787
514410
508619
524752
528732
540626
477451
439587
508567
579616
422198
452965
521192
502745
521508
]
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 (721935 , 596828 , 596968 , 607926 , 619955 , 621458 , 790689 , 808416 , 736775 , 766374 , 742326 , 757402 , 615710 , 475444 , 446579 , 448169 , 522931 , 504995 , 418741 , 814885 , 505702 , 556568 , 564964 , 662113 , 585266 , 602470 , 613791 , 596963 , 758026 , 782538 , 450220 , 507452 , 505878 , 822946 , 452680 , 457577 , 457569 , 471109 , 477631 , 540622 , 544777 , 584077 , 547755 , 554631 , 561507 , 573451 , 643317 , 585325 , 467215 , 463426 , 535414 , 517579 , 517832 , 521505 , 517245 , 709646 , 559930 , 621354 , 502749 , 504787 , 514410 , 508619 , 524752 , 528732 , 540626 , 477451 , 439587 , 508567 , 579616 , 422198 , 452965 , 521192 , 502745 , 521508 );
Copy
5
2.22 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
418741
422198
439587
446579
448169
450220
452680
452965
457569
457577
463426
467215
471109
475444
477451
477631
502745
502749
504787
504995
505702
505878
507452
508567
508619
514410
517245
517579
517832
521192
521505
521508
522931
524752
528732
535414
540622
540626
544777
547755
554631
556568
559930
561507
564964
573451
579616
584077
585266
585325
596828
596963
596968
602470
607926
613791
615710
619955
621354
621458
643317
662113
709646
721935
736775
742326
757402
758026
766374
782538
790689
808416
814885
822946
]
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 (418741 , 422198 , 439587 , 446579 , 448169 , 450220 , 452680 , 452965 , 457569 , 457577 , 463426 , 467215 , 471109 , 475444 , 477451 , 477631 , 502745 , 502749 , 504787 , 504995 , 505702 , 505878 , 507452 , 508567 , 508619 , 514410 , 517245 , 517579 , 517832 , 521192 , 521505 , 521508 , 522931 , 524752 , 528732 , 535414 , 540622 , 540626 , 544777 , 547755 , 554631 , 556568 , 559930 , 561507 , 564964 , 573451 , 579616 , 584077 , 585266 , 585325 , 596828 , 596963 , 596968 , 602470 , 607926 , 613791 , 615710 , 619955 , 621354 , 621458 , 643317 , 662113 , 709646 , 721935 , 736775 , 742326 , 757402 , 758026 , 766374 , 782538 , 790689 , 808416 , 814885 , 822946 );
Copy
6
91.82 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
418741
422198
439587
446579
448169
450220
452680
452965
457569
457577
463426
467215
471109
475444
477451
477631
502745
502749
504787
504995
505702
505878
507452
508567
508619
514410
517245
517579
517832
521192
521505
521508
522931
524752
528732
535414
540622
540626
544777
547755
554631
556568
559930
561507
564964
573451
579616
584077
585266
585325
596828
596963
596968
602470
607926
613791
615710
619955
621354
621458
643317
662113
709646
721935
736775
742326
757402
758026
766374
782538
790689
808416
814885
822946
]
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 (418741 , 422198 , 439587 , 446579 , 448169 , 450220 , 452680 , 452965 , 457569 , 457577 , 463426 , 467215 , 471109 , 475444 , 477451 , 477631 , 502745 , 502749 , 504787 , 504995 , 505702 , 505878 , 507452 , 508567 , 508619 , 514410 , 517245 , 517579 , 517832 , 521192 , 521505 , 521508 , 522931 , 524752 , 528732 , 535414 , 540622 , 540626 , 544777 , 547755 , 554631 , 556568 , 559930 , 561507 , 564964 , 573451 , 579616 , 584077 , 585266 , 585325 , 596828 , 596963 , 596968 , 602470 , 607926 , 613791 , 615710 , 619955 , 621354 , 621458 , 643317 , 662113 , 709646 , 721935 , 736775 , 742326 , 757402 , 758026 , 766374 , 782538 , 790689 , 808416 , 814885 , 822946 );
Copy