4
11.76 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
600350
633816
412738
521758
695124
632659
461503
513782
712561
530030
533773
643105
601595
704531
443491
588374
530499
532739
531144
531126
678089
641983
632599
417198
507591
391386
441439
600029
464366
507512
531117
532245
544840
666895
600837
763279
608037
469474
531247
412189
486426
532762
647979
591416
641698
810109
644986
679465
666850
540573
695181
608416
615818
637001
630764
571834
511596
566637
676428
695127
565541
637413
621330
511825
456708
461613
497953
]
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 (600350 , 633816 , 412738 , 521758 , 695124 , 632659 , 461503 , 513782 , 712561 , 530030 , 533773 , 643105 , 601595 , 704531 , 443491 , 588374 , 530499 , 532739 , 531144 , 531126 , 678089 , 641983 , 632599 , 417198 , 507591 , 391386 , 441439 , 600029 , 464366 , 507512 , 531117 , 532245 , 544840 , 666895 , 600837 , 763279 , 608037 , 469474 , 531247 , 412189 , 486426 , 532762 , 647979 , 591416 , 641698 , 810109 , 644986 , 679465 , 666850 , 540573 , 695181 , 608416 , 615818 , 637001 , 630764 , 571834 , 511596 , 566637 , 676428 , 695127 , 565541 , 637413 , 621330 , 511825 , 456708 , 461613 , 497953 );
Copy
5
2.17 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
391386
412189
412738
417198
441439
443491
456708
461503
461613
464366
469474
486426
497953
507512
507591
511596
511825
513782
521758
530030
530499
531117
531126
531144
531247
532245
532739
532762
533773
540573
544840
565541
566637
571834
588374
591416
600029
600350
600837
601595
608037
608416
615818
621330
630764
632599
632659
633816
637001
637413
641698
641983
643105
644986
647979
666850
666895
676428
678089
679465
695124
695127
695181
704531
712561
763279
810109
]
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 (391386 , 412189 , 412738 , 417198 , 441439 , 443491 , 456708 , 461503 , 461613 , 464366 , 469474 , 486426 , 497953 , 507512 , 507591 , 511596 , 511825 , 513782 , 521758 , 530030 , 530499 , 531117 , 531126 , 531144 , 531247 , 532245 , 532739 , 532762 , 533773 , 540573 , 544840 , 565541 , 566637 , 571834 , 588374 , 591416 , 600029 , 600350 , 600837 , 601595 , 608037 , 608416 , 615818 , 621330 , 630764 , 632599 , 632659 , 633816 , 637001 , 637413 , 641698 , 641983 , 643105 , 644986 , 647979 , 666850 , 666895 , 676428 , 678089 , 679465 , 695124 , 695127 , 695181 , 704531 , 712561 , 763279 , 810109 );
Copy
6
81.46 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
391386
412189
412738
417198
441439
443491
456708
461503
461613
464366
469474
486426
497953
507512
507591
511596
511825
513782
521758
530030
530499
531117
531126
531144
531247
532245
532739
532762
533773
540573
544840
565541
566637
571834
588374
591416
600029
600350
600837
601595
608037
608416
615818
621330
630764
632599
632659
633816
637001
637413
641698
641983
643105
644986
647979
666850
666895
676428
678089
679465
695124
695127
695181
704531
712561
763279
810109
]
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 (391386 , 412189 , 412738 , 417198 , 441439 , 443491 , 456708 , 461503 , 461613 , 464366 , 469474 , 486426 , 497953 , 507512 , 507591 , 511596 , 511825 , 513782 , 521758 , 530030 , 530499 , 531117 , 531126 , 531144 , 531247 , 532245 , 532739 , 532762 , 533773 , 540573 , 544840 , 565541 , 566637 , 571834 , 588374 , 591416 , 600029 , 600350 , 600837 , 601595 , 608037 , 608416 , 615818 , 621330 , 630764 , 632599 , 632659 , 633816 , 637001 , 637413 , 641698 , 641983 , 643105 , 644986 , 647979 , 666850 , 666895 , 676428 , 678089 , 679465 , 695124 , 695127 , 695181 , 704531 , 712561 , 763279 , 810109 );
Copy