4
13.58 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
555024
650187
598668
755756
726864
483711
477021
497689
530627
715595
515051
639809
256821
508885
497030
536413
508895
519697
526224
475649
718782
483739
555023
443218
512943
619102
726872
439059
610577
516073
598890
749924
536403
599847
619703
515538
639783
632571
432936
487938
510815
512928
628402
666892
600171
636293
473203
481904
642706
479277
510798
428276
650180
666863
685701
644986
610694
639732
713176
639741
666894
647893
543848
]
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 (555024 , 650187 , 598668 , 755756 , 726864 , 483711 , 477021 , 497689 , 530627 , 715595 , 515051 , 639809 , 256821 , 508885 , 497030 , 536413 , 508895 , 519697 , 526224 , 475649 , 718782 , 483739 , 555023 , 443218 , 512943 , 619102 , 726872 , 439059 , 610577 , 516073 , 598890 , 749924 , 536403 , 599847 , 619703 , 515538 , 639783 , 632571 , 432936 , 487938 , 510815 , 512928 , 628402 , 666892 , 600171 , 636293 , 473203 , 481904 , 642706 , 479277 , 510798 , 428276 , 650180 , 666863 , 685701 , 644986 , 610694 , 639732 , 713176 , 639741 , 666894 , 647893 , 543848 );
Copy
5
2.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
256821
428276
432936
439059
443218
473203
475649
477021
479277
481904
483711
483739
487938
497030
508885
508895
510798
510815
512928
512943
515051
515538
516073
519697
526224
530627
536403
536413
543848
555023
555024
598668
598890
599847
600171
610577
610694
619102
619703
628402
632571
636293
639732
639741
639783
639809
642706
644986
647893
650180
650187
666863
666892
666894
685701
713176
715595
718782
726864
726872
749924
755756
]
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 (256821 , 428276 , 432936 , 439059 , 443218 , 473203 , 475649 , 477021 , 479277 , 481904 , 483711 , 483739 , 487938 , 497030 , 508885 , 508895 , 510798 , 510815 , 512928 , 512943 , 515051 , 515538 , 516073 , 519697 , 526224 , 530627 , 536403 , 536413 , 543848 , 555023 , 555024 , 598668 , 598890 , 599847 , 600171 , 610577 , 610694 , 619102 , 619703 , 628402 , 632571 , 636293 , 639732 , 639741 , 639783 , 639809 , 642706 , 644986 , 647893 , 650180 , 650187 , 666863 , 666892 , 666894 , 685701 , 713176 , 715595 , 718782 , 726864 , 726872 , 749924 , 755756 );
Copy
6
102.56 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
256821
428276
432936
439059
443218
473203
475649
477021
479277
481904
483711
483739
487938
497030
508885
508895
510798
510815
512928
512943
515051
515538
516073
519697
526224
530627
536403
536413
543848
555023
555024
598668
598890
599847
600171
610577
610694
619102
619703
628402
632571
636293
639732
639741
639783
639809
642706
644986
647893
650180
650187
666863
666892
666894
685701
713176
715595
718782
726864
726872
749924
755756
]
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 (256821 , 428276 , 432936 , 439059 , 443218 , 473203 , 475649 , 477021 , 479277 , 481904 , 483711 , 483739 , 487938 , 497030 , 508885 , 508895 , 510798 , 510815 , 512928 , 512943 , 515051 , 515538 , 516073 , 519697 , 526224 , 530627 , 536403 , 536413 , 543848 , 555023 , 555024 , 598668 , 598890 , 599847 , 600171 , 610577 , 610694 , 619102 , 619703 , 628402 , 632571 , 636293 , 639732 , 639741 , 639783 , 639809 , 642706 , 644986 , 647893 , 650180 , 650187 , 666863 , 666892 , 666894 , 685701 , 713176 , 715595 , 718782 , 726864 , 726872 , 749924 , 755756 );
Copy