3
14.58 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
668083
657177
658225
714948
554614
564409
613172
625435
774994
487272
497140
507823
474809
479311
528952
566585
566371
660664
700727
693502
558999
591494
597812
744753
735920
739900
635050
414635
464598
479955
447076
500665
483814
485258
447094
535707
495818
662221
586654
623211
605498
464721
445967
528963
510619
496585
419956
593485
622405
626405
518111
523324
562626
718798
596226
590664
786552
635074
455941
497923
506133
631597
448954
459512
485061
457789
590469
625437
497921
625440
527908
]
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 (668083 , 657177 , 658225 , 714948 , 554614 , 564409 , 613172 , 625435 , 774994 , 487272 , 497140 , 507823 , 474809 , 479311 , 528952 , 566585 , 566371 , 660664 , 700727 , 693502 , 558999 , 591494 , 597812 , 744753 , 735920 , 739900 , 635050 , 414635 , 464598 , 479955 , 447076 , 500665 , 483814 , 485258 , 447094 , 535707 , 495818 , 662221 , 586654 , 623211 , 605498 , 464721 , 445967 , 528963 , 510619 , 496585 , 419956 , 593485 , 622405 , 626405 , 518111 , 523324 , 562626 , 718798 , 596226 , 590664 , 786552 , 635074 , 455941 , 497923 , 506133 , 631597 , 448954 , 459512 , 485061 , 457789 , 590469 , 625437 , 497921 , 625440 , 527908 );
Copy
4
2.23 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
414635
419956
445967
447076
447094
448954
455941
457789
459512
464598
464721
474809
479311
479955
483814
485061
485258
487272
495818
496585
497140
497921
497923
500665
506133
507823
510619
518111
527908
528952
528963
535707
554614
558999
562626
564409
566371
566585
586654
590469
590664
591494
593485
596226
597812
605498
613172
622405
623211
625435
625437
625440
626405
631597
635050
635074
657177
658225
660664
668083
693502
700727
714948
718798
735920
739900
744753
774994
786552
]
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 (414635 , 419956 , 445967 , 447076 , 447094 , 448954 , 455941 , 457789 , 459512 , 464598 , 464721 , 474809 , 479311 , 479955 , 483814 , 485061 , 485258 , 487272 , 495818 , 496585 , 497140 , 497921 , 497923 , 500665 , 506133 , 507823 , 510619 , 518111 , 527908 , 528952 , 528963 , 535707 , 554614 , 558999 , 562626 , 564409 , 566371 , 566585 , 586654 , 590469 , 590664 , 591494 , 593485 , 596226 , 597812 , 605498 , 613172 , 622405 , 623211 , 625435 , 625437 , 625440 , 626405 , 631597 , 635050 , 635074 , 657177 , 658225 , 660664 , 668083 , 693502 , 700727 , 714948 , 718798 , 735920 , 739900 , 744753 , 774994 , 786552 );
Copy
5
75.77 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
414635
419956
445967
447076
447094
448954
455941
457789
459512
464598
464721
474809
479311
479955
483814
485061
485258
487272
495818
496585
497140
497921
497923
500665
506133
507823
510619
518111
527908
528952
528963
535707
554614
558999
562626
564409
566371
566585
586654
590469
590664
591494
593485
596226
597812
605498
613172
622405
623211
625435
625437
625440
626405
631597
635050
635074
657177
658225
660664
668083
693502
700727
714948
718798
735920
739900
744753
774994
786552
]
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 (414635 , 419956 , 445967 , 447076 , 447094 , 448954 , 455941 , 457789 , 459512 , 464598 , 464721 , 474809 , 479311 , 479955 , 483814 , 485061 , 485258 , 487272 , 495818 , 496585 , 497140 , 497921 , 497923 , 500665 , 506133 , 507823 , 510619 , 518111 , 527908 , 528952 , 528963 , 535707 , 554614 , 558999 , 562626 , 564409 , 566371 , 566585 , 586654 , 590469 , 590664 , 591494 , 593485 , 596226 , 597812 , 605498 , 613172 , 622405 , 623211 , 625435 , 625437 , 625440 , 626405 , 631597 , 635050 , 635074 , 657177 , 658225 , 660664 , 668083 , 693502 , 700727 , 714948 , 718798 , 735920 , 739900 , 744753 , 774994 , 786552 );
Copy