3
12.40 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
435236
446902
413895
444260
489583
420358
419272
432732
468591
507695
537221
573927
576342
719600
597961
605699
422237
427273
454938
498641
468771
571834
822692
645003
568168
569146
590802
586695
457406
462566
417408
429946
522995
524070
584779
452677
422472
575889
693965
598786
443215
522434
576103
590865
418013
437632
427246
557236
657128
623211
448644
522556
775809
420692
518558
524273
650228
588818
560188
564826
676956
481149
555864
437518
460673
556535
596168
610588
420635
575104
528921
573393
506467
486540
]
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 (435236 , 446902 , 413895 , 444260 , 489583 , 420358 , 419272 , 432732 , 468591 , 507695 , 537221 , 573927 , 576342 , 719600 , 597961 , 605699 , 422237 , 427273 , 454938 , 498641 , 468771 , 571834 , 822692 , 645003 , 568168 , 569146 , 590802 , 586695 , 457406 , 462566 , 417408 , 429946 , 522995 , 524070 , 584779 , 452677 , 422472 , 575889 , 693965 , 598786 , 443215 , 522434 , 576103 , 590865 , 418013 , 437632 , 427246 , 557236 , 657128 , 623211 , 448644 , 522556 , 775809 , 420692 , 518558 , 524273 , 650228 , 588818 , 560188 , 564826 , 676956 , 481149 , 555864 , 437518 , 460673 , 556535 , 596168 , 610588 , 420635 , 575104 , 528921 , 573393 , 506467 , 486540 );
Copy
4
2.26 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
413895
417408
418013
419272
420358
420635
420692
422237
422472
427246
427273
429946
432732
435236
437518
437632
443215
444260
446902
448644
452677
454938
457406
460673
462566
468591
468771
481149
486540
489583
498641
506467
507695
518558
522434
522556
522995
524070
524273
528921
537221
555864
556535
557236
560188
564826
568168
569146
571834
573393
573927
575104
575889
576103
576342
584779
586695
588818
590802
590865
596168
597961
598786
605699
610588
623211
645003
650228
657128
676956
693965
719600
775809
822692
]
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 (413895 , 417408 , 418013 , 419272 , 420358 , 420635 , 420692 , 422237 , 422472 , 427246 , 427273 , 429946 , 432732 , 435236 , 437518 , 437632 , 443215 , 444260 , 446902 , 448644 , 452677 , 454938 , 457406 , 460673 , 462566 , 468591 , 468771 , 481149 , 486540 , 489583 , 498641 , 506467 , 507695 , 518558 , 522434 , 522556 , 522995 , 524070 , 524273 , 528921 , 537221 , 555864 , 556535 , 557236 , 560188 , 564826 , 568168 , 569146 , 571834 , 573393 , 573927 , 575104 , 575889 , 576103 , 576342 , 584779 , 586695 , 588818 , 590802 , 590865 , 596168 , 597961 , 598786 , 605699 , 610588 , 623211 , 645003 , 650228 , 657128 , 676956 , 693965 , 719600 , 775809 , 822692 );
Copy
5
85.60 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
413895
417408
418013
419272
420358
420635
420692
422237
422472
427246
427273
429946
432732
435236
437518
437632
443215
444260
446902
448644
452677
454938
457406
460673
462566
468591
468771
481149
486540
489583
498641
506467
507695
518558
522434
522556
522995
524070
524273
528921
537221
555864
556535
557236
560188
564826
568168
569146
571834
573393
573927
575104
575889
576103
576342
584779
586695
588818
590802
590865
596168
597961
598786
605699
610588
623211
645003
650228
657128
676956
693965
719600
775809
822692
]
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 (413895 , 417408 , 418013 , 419272 , 420358 , 420635 , 420692 , 422237 , 422472 , 427246 , 427273 , 429946 , 432732 , 435236 , 437518 , 437632 , 443215 , 444260 , 446902 , 448644 , 452677 , 454938 , 457406 , 460673 , 462566 , 468591 , 468771 , 481149 , 486540 , 489583 , 498641 , 506467 , 507695 , 518558 , 522434 , 522556 , 522995 , 524070 , 524273 , 528921 , 537221 , 555864 , 556535 , 557236 , 560188 , 564826 , 568168 , 569146 , 571834 , 573393 , 573927 , 575104 , 575889 , 576103 , 576342 , 584779 , 586695 , 588818 , 590802 , 590865 , 596168 , 597961 , 598786 , 605699 , 610588 , 623211 , 645003 , 650228 , 657128 , 676956 , 693965 , 719600 , 775809 , 822692 );
Copy