3
9.43 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
705793
531244
826507
825526
811099
823560
828480
747438
591701
463373
828006
791587
750342
756382
599631
827553
151163
696237
810776
732771
717461
817074
626357
807579
801799
742364
800475
540021
591162
627168
813459
770544
812738
438279
532312
650506
719832
636574
604614
603792
784959
771366
784814
456405
506304
805112
396570
732765
423996
586244
482705
455967
485225
605196
726166
499177
511291
516655
631908
788562
466616
526536
518438
]
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 (705793 , 531244 , 826507 , 825526 , 811099 , 823560 , 828480 , 747438 , 591701 , 463373 , 828006 , 791587 , 750342 , 756382 , 599631 , 827553 , 151163 , 696237 , 810776 , 732771 , 717461 , 817074 , 626357 , 807579 , 801799 , 742364 , 800475 , 540021 , 591162 , 627168 , 813459 , 770544 , 812738 , 438279 , 532312 , 650506 , 719832 , 636574 , 604614 , 603792 , 784959 , 771366 , 784814 , 456405 , 506304 , 805112 , 396570 , 732765 , 423996 , 586244 , 482705 , 455967 , 485225 , 605196 , 726166 , 499177 , 511291 , 516655 , 631908 , 788562 , 466616 , 526536 , 518438 );
Copy
4
2.38 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
151163
396570
423996
438279
455967
456405
463373
466616
482705
485225
499177
506304
511291
516655
518438
526536
531244
532312
540021
586244
591162
591701
599631
603792
604614
605196
626357
627168
631908
636574
650506
696237
705793
717461
719832
726166
732765
732771
742364
747438
750342
756382
770544
771366
784814
784959
788562
791587
800475
801799
805112
807579
810776
811099
812738
813459
817074
823560
825526
826507
827553
828006
828480
]
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 (151163 , 396570 , 423996 , 438279 , 455967 , 456405 , 463373 , 466616 , 482705 , 485225 , 499177 , 506304 , 511291 , 516655 , 518438 , 526536 , 531244 , 532312 , 540021 , 586244 , 591162 , 591701 , 599631 , 603792 , 604614 , 605196 , 626357 , 627168 , 631908 , 636574 , 650506 , 696237 , 705793 , 717461 , 719832 , 726166 , 732765 , 732771 , 742364 , 747438 , 750342 , 756382 , 770544 , 771366 , 784814 , 784959 , 788562 , 791587 , 800475 , 801799 , 805112 , 807579 , 810776 , 811099 , 812738 , 813459 , 817074 , 823560 , 825526 , 826507 , 827553 , 828006 , 828480 );
Copy
5
70.77 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
151163
396570
423996
438279
455967
456405
463373
466616
482705
485225
499177
506304
511291
516655
518438
526536
531244
532312
540021
586244
591162
591701
599631
603792
604614
605196
626357
627168
631908
636574
650506
696237
705793
717461
719832
726166
732765
732771
742364
747438
750342
756382
770544
771366
784814
784959
788562
791587
800475
801799
805112
807579
810776
811099
812738
813459
817074
823560
825526
826507
827553
828006
828480
]
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 (151163 , 396570 , 423996 , 438279 , 455967 , 456405 , 463373 , 466616 , 482705 , 485225 , 499177 , 506304 , 511291 , 516655 , 518438 , 526536 , 531244 , 532312 , 540021 , 586244 , 591162 , 591701 , 599631 , 603792 , 604614 , 605196 , 626357 , 627168 , 631908 , 636574 , 650506 , 696237 , 705793 , 717461 , 719832 , 726166 , 732765 , 732771 , 742364 , 747438 , 750342 , 756382 , 770544 , 771366 , 784814 , 784959 , 788562 , 791587 , 800475 , 801799 , 805112 , 807579 , 810776 , 811099 , 812738 , 813459 , 817074 , 823560 , 825526 , 826507 , 827553 , 828006 , 828480 );
Copy