3
16.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
770567
468761
478141
514353
542108
555643
518787
529427
505423
457349
406765
821613
605892
610601
638980
799584
602792
820597
474248
524231
670208
487134
551640
521298
506258
560387
540587
512948
514095
562065
581946
551860
714491
673751
598736
794091
786081
455733
473799
413518
521022
552967
547142
599418
604151
525546
443358
817597
540916
568608
645096
585729
620072
455514
471895
530779
520635
574162
579764
673330
567915
615575
605477
574179
560340
790154
435962
529474
566155
]
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 (770567 , 468761 , 478141 , 514353 , 542108 , 555643 , 518787 , 529427 , 505423 , 457349 , 406765 , 821613 , 605892 , 610601 , 638980 , 799584 , 602792 , 820597 , 474248 , 524231 , 670208 , 487134 , 551640 , 521298 , 506258 , 560387 , 540587 , 512948 , 514095 , 562065 , 581946 , 551860 , 714491 , 673751 , 598736 , 794091 , 786081 , 455733 , 473799 , 413518 , 521022 , 552967 , 547142 , 599418 , 604151 , 525546 , 443358 , 817597 , 540916 , 568608 , 645096 , 585729 , 620072 , 455514 , 471895 , 530779 , 520635 , 574162 , 579764 , 673330 , 567915 , 615575 , 605477 , 574179 , 560340 , 790154 , 435962 , 529474 , 566155 );
Copy
4
2.19 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
406765
413518
435962
443358
455514
455733
457349
468761
471895
473799
474248
478141
487134
505423
506258
512948
514095
514353
518787
520635
521022
521298
524231
525546
529427
529474
530779
540587
540916
542108
547142
551640
551860
552967
555643
560340
560387
562065
566155
567915
568608
574162
574179
579764
581946
585729
598736
599418
602792
604151
605477
605892
610601
615575
620072
638980
645096
670208
673330
673751
714491
770567
786081
790154
794091
799584
817597
820597
821613
]
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 (406765 , 413518 , 435962 , 443358 , 455514 , 455733 , 457349 , 468761 , 471895 , 473799 , 474248 , 478141 , 487134 , 505423 , 506258 , 512948 , 514095 , 514353 , 518787 , 520635 , 521022 , 521298 , 524231 , 525546 , 529427 , 529474 , 530779 , 540587 , 540916 , 542108 , 547142 , 551640 , 551860 , 552967 , 555643 , 560340 , 560387 , 562065 , 566155 , 567915 , 568608 , 574162 , 574179 , 579764 , 581946 , 585729 , 598736 , 599418 , 602792 , 604151 , 605477 , 605892 , 610601 , 615575 , 620072 , 638980 , 645096 , 670208 , 673330 , 673751 , 714491 , 770567 , 786081 , 790154 , 794091 , 799584 , 817597 , 820597 , 821613 );
Copy
5
130.48 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
406765
413518
435962
443358
455514
455733
457349
468761
471895
473799
474248
478141
487134
505423
506258
512948
514095
514353
518787
520635
521022
521298
524231
525546
529427
529474
530779
540587
540916
542108
547142
551640
551860
552967
555643
560340
560387
562065
566155
567915
568608
574162
574179
579764
581946
585729
598736
599418
602792
604151
605477
605892
610601
615575
620072
638980
645096
670208
673330
673751
714491
770567
786081
790154
794091
799584
817597
820597
821613
]
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 (406765 , 413518 , 435962 , 443358 , 455514 , 455733 , 457349 , 468761 , 471895 , 473799 , 474248 , 478141 , 487134 , 505423 , 506258 , 512948 , 514095 , 514353 , 518787 , 520635 , 521022 , 521298 , 524231 , 525546 , 529427 , 529474 , 530779 , 540587 , 540916 , 542108 , 547142 , 551640 , 551860 , 552967 , 555643 , 560340 , 560387 , 562065 , 566155 , 567915 , 568608 , 574162 , 574179 , 579764 , 581946 , 585729 , 598736 , 599418 , 602792 , 604151 , 605477 , 605892 , 610601 , 615575 , 620072 , 638980 , 645096 , 670208 , 673330 , 673751 , 714491 , 770567 , 786081 , 790154 , 794091 , 799584 , 817597 , 820597 , 821613 );
Copy