3
15.19 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
608230
458200
695117
666113
579740
637731
618674
577392
582035
579713
663427
618888
471814
606704
443640
506363
465783
606744
513506
516549
584749
564644
527049
578586
504780
528409
812874
551136
583302
603713
616956
477353
807407
428409
615826
625171
628175
446856
526708
510557
582639
425353
608336
663930
557928
619201
452602
599483
489495
513050
620124
391386
558425
624776
568062
449362
532164
612125
606948
588039
586419
518768
688586
507663
516103
601101
515840
512059
527447
605971
]
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 (608230 , 458200 , 695117 , 666113 , 579740 , 637731 , 618674 , 577392 , 582035 , 579713 , 663427 , 618888 , 471814 , 606704 , 443640 , 506363 , 465783 , 606744 , 513506 , 516549 , 584749 , 564644 , 527049 , 578586 , 504780 , 528409 , 812874 , 551136 , 583302 , 603713 , 616956 , 477353 , 807407 , 428409 , 615826 , 625171 , 628175 , 446856 , 526708 , 510557 , 582639 , 425353 , 608336 , 663930 , 557928 , 619201 , 452602 , 599483 , 489495 , 513050 , 620124 , 391386 , 558425 , 624776 , 568062 , 449362 , 532164 , 612125 , 606948 , 588039 , 586419 , 518768 , 688586 , 507663 , 516103 , 601101 , 515840 , 512059 , 527447 , 605971 );
Copy
4
3.17 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
391386
425353
428409
443640
446856
449362
452602
458200
465783
471814
477353
489495
504780
506363
507663
510557
512059
513050
513506
515840
516103
516549
518768
526708
527049
527447
528409
532164
551136
557928
558425
564644
568062
577392
578586
579713
579740
582035
582639
583302
584749
586419
588039
599483
601101
603713
605971
606704
606744
606948
608230
608336
612125
615826
616956
618674
618888
619201
620124
624776
625171
628175
637731
663427
663930
666113
688586
695117
807407
812874
]
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 (391386 , 425353 , 428409 , 443640 , 446856 , 449362 , 452602 , 458200 , 465783 , 471814 , 477353 , 489495 , 504780 , 506363 , 507663 , 510557 , 512059 , 513050 , 513506 , 515840 , 516103 , 516549 , 518768 , 526708 , 527049 , 527447 , 528409 , 532164 , 551136 , 557928 , 558425 , 564644 , 568062 , 577392 , 578586 , 579713 , 579740 , 582035 , 582639 , 583302 , 584749 , 586419 , 588039 , 599483 , 601101 , 603713 , 605971 , 606704 , 606744 , 606948 , 608230 , 608336 , 612125 , 615826 , 616956 , 618674 , 618888 , 619201 , 620124 , 624776 , 625171 , 628175 , 637731 , 663427 , 663930 , 666113 , 688586 , 695117 , 807407 , 812874 );
Copy
5
102.21 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
391386
425353
428409
443640
446856
449362
452602
458200
465783
471814
477353
489495
504780
506363
507663
510557
512059
513050
513506
515840
516103
516549
518768
526708
527049
527447
528409
532164
551136
557928
558425
564644
568062
577392
578586
579713
579740
582035
582639
583302
584749
586419
588039
599483
601101
603713
605971
606704
606744
606948
608230
608336
612125
615826
616956
618674
618888
619201
620124
624776
625171
628175
637731
663427
663930
666113
688586
695117
807407
812874
]
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 (391386 , 425353 , 428409 , 443640 , 446856 , 449362 , 452602 , 458200 , 465783 , 471814 , 477353 , 489495 , 504780 , 506363 , 507663 , 510557 , 512059 , 513050 , 513506 , 515840 , 516103 , 516549 , 518768 , 526708 , 527049 , 527447 , 528409 , 532164 , 551136 , 557928 , 558425 , 564644 , 568062 , 577392 , 578586 , 579713 , 579740 , 582035 , 582639 , 583302 , 584749 , 586419 , 588039 , 599483 , 601101 , 603713 , 605971 , 606704 , 606744 , 606948 , 608230 , 608336 , 612125 , 615826 , 616956 , 618674 , 618888 , 619201 , 620124 , 624776 , 625171 , 628175 , 637731 , 663427 , 663930 , 666113 , 688586 , 695117 , 807407 , 812874 );
Copy