4
9.24 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
580776
703907
706992
755950
814751
533947
647634
724560
755474
789885
477898
778460
675974
632305
604589
782657
727698
759290
724170
418452
548357
580758
649132
650636
670338
384368
591552
747648
536178
531517
807928
96048
531519
531514
651135
645327
512943
755974
442680
531468
646029
633111
527000
442830
531516
531513
822818
824024
147897
815424
696032
83545
822700
822726
403061
820957
713143
817910
382501
811943
816952
821188
396706
604500
389425
399164
510132
817841
468476
489971
443138
442195
500430
442398
]
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 (580776 , 703907 , 706992 , 755950 , 814751 , 533947 , 647634 , 724560 , 755474 , 789885 , 477898 , 778460 , 675974 , 632305 , 604589 , 782657 , 727698 , 759290 , 724170 , 418452 , 548357 , 580758 , 649132 , 650636 , 670338 , 384368 , 591552 , 747648 , 536178 , 531517 , 807928 , 96048 , 531519 , 531514 , 651135 , 645327 , 512943 , 755974 , 442680 , 531468 , 646029 , 633111 , 527000 , 442830 , 531516 , 531513 , 822818 , 824024 , 147897 , 815424 , 696032 , 83545 , 822700 , 822726 , 403061 , 820957 , 713143 , 817910 , 382501 , 811943 , 816952 , 821188 , 396706 , 604500 , 389425 , 399164 , 510132 , 817841 , 468476 , 489971 , 443138 , 442195 , 500430 , 442398 );
Copy
5
3.08 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
83545
96048
147897
382501
384368
389425
396706
399164
403061
418452
442195
442398
442680
442830
443138
468476
477898
489971
500430
510132
512943
527000
531468
531513
531514
531516
531517
531519
533947
536178
548357
580758
580776
591552
604500
604589
632305
633111
645327
646029
647634
649132
650636
651135
670338
675974
696032
703907
706992
713143
724170
724560
727698
747648
755474
755950
755974
759290
778460
782657
789885
807928
811943
814751
815424
816952
817841
817910
820957
821188
822700
822726
822818
824024
]
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 (83545 , 96048 , 147897 , 382501 , 384368 , 389425 , 396706 , 399164 , 403061 , 418452 , 442195 , 442398 , 442680 , 442830 , 443138 , 468476 , 477898 , 489971 , 500430 , 510132 , 512943 , 527000 , 531468 , 531513 , 531514 , 531516 , 531517 , 531519 , 533947 , 536178 , 548357 , 580758 , 580776 , 591552 , 604500 , 604589 , 632305 , 633111 , 645327 , 646029 , 647634 , 649132 , 650636 , 651135 , 670338 , 675974 , 696032 , 703907 , 706992 , 713143 , 724170 , 724560 , 727698 , 747648 , 755474 , 755950 , 755974 , 759290 , 778460 , 782657 , 789885 , 807928 , 811943 , 814751 , 815424 , 816952 , 817841 , 817910 , 820957 , 821188 , 822700 , 822726 , 822818 , 824024 );
Copy
6
86.74 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
83545
96048
147897
382501
384368
389425
396706
399164
403061
418452
442195
442398
442680
442830
443138
468476
477898
489971
500430
510132
512943
527000
531468
531513
531514
531516
531517
531519
533947
536178
548357
580758
580776
591552
604500
604589
632305
633111
645327
646029
647634
649132
650636
651135
670338
675974
696032
703907
706992
713143
724170
724560
727698
747648
755474
755950
755974
759290
778460
782657
789885
807928
811943
814751
815424
816952
817841
817910
820957
821188
822700
822726
822818
824024
]
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 (83545 , 96048 , 147897 , 382501 , 384368 , 389425 , 396706 , 399164 , 403061 , 418452 , 442195 , 442398 , 442680 , 442830 , 443138 , 468476 , 477898 , 489971 , 500430 , 510132 , 512943 , 527000 , 531468 , 531513 , 531514 , 531516 , 531517 , 531519 , 533947 , 536178 , 548357 , 580758 , 580776 , 591552 , 604500 , 604589 , 632305 , 633111 , 645327 , 646029 , 647634 , 649132 , 650636 , 651135 , 670338 , 675974 , 696032 , 703907 , 706992 , 713143 , 724170 , 724560 , 727698 , 747648 , 755474 , 755950 , 755974 , 759290 , 778460 , 782657 , 789885 , 807928 , 811943 , 814751 , 815424 , 816952 , 817841 , 817910 , 820957 , 821188 , 822700 , 822726 , 822818 , 824024 );
Copy