4
9.69 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
816133
621481
556622
706174
650696
667185
667187
768637
438690
648192
611020
772332
640587
585256
423586
606883
460683
505924
668547
772336
709266
718881
479742
579354
507469
524227
675183
446845
474505
559847
509287
507184
616507
459084
773820
474507
524816
797935
695896
606934
638408
825205
825003
799889
695914
627721
797933
419179
517409
597695
795069
727583
720209
769417
802471
516746
621367
630937
510682
493262
558719
495416
512452
524862
615711
]
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 (816133 , 621481 , 556622 , 706174 , 650696 , 667185 , 667187 , 768637 , 438690 , 648192 , 611020 , 772332 , 640587 , 585256 , 423586 , 606883 , 460683 , 505924 , 668547 , 772336 , 709266 , 718881 , 479742 , 579354 , 507469 , 524227 , 675183 , 446845 , 474505 , 559847 , 509287 , 507184 , 616507 , 459084 , 773820 , 474507 , 524816 , 797935 , 695896 , 606934 , 638408 , 825205 , 825003 , 799889 , 695914 , 627721 , 797933 , 419179 , 517409 , 597695 , 795069 , 727583 , 720209 , 769417 , 802471 , 516746 , 621367 , 630937 , 510682 , 493262 , 558719 , 495416 , 512452 , 524862 , 615711 );
Copy
5
2.45 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
419179
423586
438690
446845
459084
460683
474505
474507
479742
493262
495416
505924
507184
507469
509287
510682
512452
516746
517409
524227
524816
524862
556622
558719
559847
579354
585256
597695
606883
606934
611020
615711
616507
621367
621481
627721
630937
638408
640587
648192
650696
667185
667187
668547
675183
695896
695914
706174
709266
718881
720209
727583
768637
769417
772332
772336
773820
795069
797933
797935
799889
802471
816133
825003
825205
]
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 (419179 , 423586 , 438690 , 446845 , 459084 , 460683 , 474505 , 474507 , 479742 , 493262 , 495416 , 505924 , 507184 , 507469 , 509287 , 510682 , 512452 , 516746 , 517409 , 524227 , 524816 , 524862 , 556622 , 558719 , 559847 , 579354 , 585256 , 597695 , 606883 , 606934 , 611020 , 615711 , 616507 , 621367 , 621481 , 627721 , 630937 , 638408 , 640587 , 648192 , 650696 , 667185 , 667187 , 668547 , 675183 , 695896 , 695914 , 706174 , 709266 , 718881 , 720209 , 727583 , 768637 , 769417 , 772332 , 772336 , 773820 , 795069 , 797933 , 797935 , 799889 , 802471 , 816133 , 825003 , 825205 );
Copy
6
98.30 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
419179
423586
438690
446845
459084
460683
474505
474507
479742
493262
495416
505924
507184
507469
509287
510682
512452
516746
517409
524227
524816
524862
556622
558719
559847
579354
585256
597695
606883
606934
611020
615711
616507
621367
621481
627721
630937
638408
640587
648192
650696
667185
667187
668547
675183
695896
695914
706174
709266
718881
720209
727583
768637
769417
772332
772336
773820
795069
797933
797935
799889
802471
816133
825003
825205
]
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 (419179 , 423586 , 438690 , 446845 , 459084 , 460683 , 474505 , 474507 , 479742 , 493262 , 495416 , 505924 , 507184 , 507469 , 509287 , 510682 , 512452 , 516746 , 517409 , 524227 , 524816 , 524862 , 556622 , 558719 , 559847 , 579354 , 585256 , 597695 , 606883 , 606934 , 611020 , 615711 , 616507 , 621367 , 621481 , 627721 , 630937 , 638408 , 640587 , 648192 , 650696 , 667185 , 667187 , 668547 , 675183 , 695896 , 695914 , 706174 , 709266 , 718881 , 720209 , 727583 , 768637 , 769417 , 772332 , 772336 , 773820 , 795069 , 797933 , 797935 , 799889 , 802471 , 816133 , 825003 , 825205 );
Copy