3
28.09 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
412620
397255
398475
486400
412071
404495
469202
416169
479019
390914
434076
409640
448684
403031
397273
478806
494736
505836
464381
547777
444400
468554
551133
471792
451043
547797
498594
529524
497673
473439
445783
406095
465038
487693
490067
510013
518248
435529
464561
591692
470421
495734
395688
447138
450881
524112
454415
548596
497757
444702
588992
491208
472931
452061
622938
468057
510186
462000
489023
603035
599353
455287
452531
525154
448667
605545
526220
613836
562108
404292
450815
628426
538745
585007
589148
]
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 (412620 , 397255 , 398475 , 486400 , 412071 , 404495 , 469202 , 416169 , 479019 , 390914 , 434076 , 409640 , 448684 , 403031 , 397273 , 478806 , 494736 , 505836 , 464381 , 547777 , 444400 , 468554 , 551133 , 471792 , 451043 , 547797 , 498594 , 529524 , 497673 , 473439 , 445783 , 406095 , 465038 , 487693 , 490067 , 510013 , 518248 , 435529 , 464561 , 591692 , 470421 , 495734 , 395688 , 447138 , 450881 , 524112 , 454415 , 548596 , 497757 , 444702 , 588992 , 491208 , 472931 , 452061 , 622938 , 468057 , 510186 , 462000 , 489023 , 603035 , 599353 , 455287 , 452531 , 525154 , 448667 , 605545 , 526220 , 613836 , 562108 , 404292 , 450815 , 628426 , 538745 , 585007 , 589148 );
Copy
4
4.54 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
390914
395688
397255
397273
398475
403031
404292
404495
406095
409640
412071
412620
416169
434076
435529
444400
444702
445783
447138
448667
448684
450815
450881
451043
452061
452531
454415
455287
462000
464381
464561
465038
468057
468554
469202
470421
471792
472931
473439
478806
479019
486400
487693
489023
490067
491208
494736
495734
497673
497757
498594
505836
510013
510186
518248
524112
525154
526220
529524
538745
547777
547797
548596
551133
562108
585007
588992
589148
591692
599353
603035
605545
613836
622938
628426
]
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 (390914 , 395688 , 397255 , 397273 , 398475 , 403031 , 404292 , 404495 , 406095 , 409640 , 412071 , 412620 , 416169 , 434076 , 435529 , 444400 , 444702 , 445783 , 447138 , 448667 , 448684 , 450815 , 450881 , 451043 , 452061 , 452531 , 454415 , 455287 , 462000 , 464381 , 464561 , 465038 , 468057 , 468554 , 469202 , 470421 , 471792 , 472931 , 473439 , 478806 , 479019 , 486400 , 487693 , 489023 , 490067 , 491208 , 494736 , 495734 , 497673 , 497757 , 498594 , 505836 , 510013 , 510186 , 518248 , 524112 , 525154 , 526220 , 529524 , 538745 , 547777 , 547797 , 548596 , 551133 , 562108 , 585007 , 588992 , 589148 , 591692 , 599353 , 603035 , 605545 , 613836 , 622938 , 628426 );
Copy
5
98.75 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
390914
395688
397255
397273
398475
403031
404292
404495
406095
409640
412071
412620
416169
434076
435529
444400
444702
445783
447138
448667
448684
450815
450881
451043
452061
452531
454415
455287
462000
464381
464561
465038
468057
468554
469202
470421
471792
472931
473439
478806
479019
486400
487693
489023
490067
491208
494736
495734
497673
497757
498594
505836
510013
510186
518248
524112
525154
526220
529524
538745
547777
547797
548596
551133
562108
585007
588992
589148
591692
599353
603035
605545
613836
622938
628426
]
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 (390914 , 395688 , 397255 , 397273 , 398475 , 403031 , 404292 , 404495 , 406095 , 409640 , 412071 , 412620 , 416169 , 434076 , 435529 , 444400 , 444702 , 445783 , 447138 , 448667 , 448684 , 450815 , 450881 , 451043 , 452061 , 452531 , 454415 , 455287 , 462000 , 464381 , 464561 , 465038 , 468057 , 468554 , 469202 , 470421 , 471792 , 472931 , 473439 , 478806 , 479019 , 486400 , 487693 , 489023 , 490067 , 491208 , 494736 , 495734 , 497673 , 497757 , 498594 , 505836 , 510013 , 510186 , 518248 , 524112 , 525154 , 526220 , 529524 , 538745 , 547777 , 547797 , 548596 , 551133 , 562108 , 585007 , 588992 , 589148 , 591692 , 599353 , 603035 , 605545 , 613836 , 622938 , 628426 );
Copy