4
10.49 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
461503
513782
461375
712561
530030
533773
642025
643105
633770
601595
704531
443491
588374
530499
532739
531144
531126
678089
641983
632599
417198
507591
391386
441439
600029
464366
507512
511489
534021
531117
532245
544840
666895
600837
532745
653567
763279
608037
531247
412189
486426
532762
647979
641698
810109
644986
679465
666850
540573
695181
608416
615818
637001
630764
571834
511596
566637
676428
695127
565541
637413
621330
511825
456705
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 (461503 , 513782 , 461375 , 712561 , 530030 , 533773 , 642025 , 643105 , 633770 , 601595 , 704531 , 443491 , 588374 , 530499 , 532739 , 531144 , 531126 , 678089 , 641983 , 632599 , 417198 , 507591 , 391386 , 441439 , 600029 , 464366 , 507512 , 511489 , 534021 , 531117 , 532245 , 544840 , 666895 , 600837 , 532745 , 653567 , 763279 , 608037 , 531247 , 412189 , 486426 , 532762 , 647979 , 641698 , 810109 , 644986 , 679465 , 666850 , 540573 , 695181 , 608416 , 615818 , 637001 , 630764 , 571834 , 511596 , 566637 , 676428 , 695127 , 565541 , 637413 , 621330 , 511825 , 456705 , 456708 , 461613 , 497953 );
Copy
5
3.11 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
417198
441439
443491
456705
456708
461375
461503
461613
464366
486426
497953
507512
507591
511489
511596
511825
513782
530030
530499
531117
531126
531144
531247
532245
532739
532745
532762
533773
534021
540573
544840
565541
566637
571834
588374
600029
600837
601595
608037
608416
615818
621330
630764
632599
633770
637001
637413
641698
641983
642025
643105
644986
647979
653567
666850
666895
676428
678089
679465
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 , 417198 , 441439 , 443491 , 456705 , 456708 , 461375 , 461503 , 461613 , 464366 , 486426 , 497953 , 507512 , 507591 , 511489 , 511596 , 511825 , 513782 , 530030 , 530499 , 531117 , 531126 , 531144 , 531247 , 532245 , 532739 , 532745 , 532762 , 533773 , 534021 , 540573 , 544840 , 565541 , 566637 , 571834 , 588374 , 600029 , 600837 , 601595 , 608037 , 608416 , 615818 , 621330 , 630764 , 632599 , 633770 , 637001 , 637413 , 641698 , 641983 , 642025 , 643105 , 644986 , 647979 , 653567 , 666850 , 666895 , 676428 , 678089 , 679465 , 695127 , 695181 , 704531 , 712561 , 763279 , 810109 );
Copy
6
86.64 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
417198
441439
443491
456705
456708
461375
461503
461613
464366
486426
497953
507512
507591
511489
511596
511825
513782
530030
530499
531117
531126
531144
531247
532245
532739
532745
532762
533773
534021
540573
544840
565541
566637
571834
588374
600029
600837
601595
608037
608416
615818
621330
630764
632599
633770
637001
637413
641698
641983
642025
643105
644986
647979
653567
666850
666895
676428
678089
679465
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 , 417198 , 441439 , 443491 , 456705 , 456708 , 461375 , 461503 , 461613 , 464366 , 486426 , 497953 , 507512 , 507591 , 511489 , 511596 , 511825 , 513782 , 530030 , 530499 , 531117 , 531126 , 531144 , 531247 , 532245 , 532739 , 532745 , 532762 , 533773 , 534021 , 540573 , 544840 , 565541 , 566637 , 571834 , 588374 , 600029 , 600837 , 601595 , 608037 , 608416 , 615818 , 621330 , 630764 , 632599 , 633770 , 637001 , 637413 , 641698 , 641983 , 642025 , 643105 , 644986 , 647979 , 653567 , 666850 , 666895 , 676428 , 678089 , 679465 , 695127 , 695181 , 704531 , 712561 , 763279 , 810109 );
Copy