3
12.06 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
581683
686063
581656
581695
581628
712794
4228
698657
686065
624238
626739
686054
686059
686064
581661
581703
581652
686058
502292
502297
686061
622216
624244
581660
581706
581641
581654
581694
581638
686076
685767
502299
581704
581696
581648
581697
686073
581667
624239
624255
471538
581664
581689
581630
581669
581676
581691
581649
618469
624260
466640
510406
581637
581687
581662
581707
581681
581701
429808
562106
581665
581682
603168
581686
]
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 (581683 , 686063 , 581656 , 581695 , 581628 , 712794 , 4228 , 698657 , 686065 , 624238 , 626739 , 686054 , 686059 , 686064 , 581661 , 581703 , 581652 , 686058 , 502292 , 502297 , 686061 , 622216 , 624244 , 581660 , 581706 , 581641 , 581654 , 581694 , 581638 , 686076 , 685767 , 502299 , 581704 , 581696 , 581648 , 581697 , 686073 , 581667 , 624239 , 624255 , 471538 , 581664 , 581689 , 581630 , 581669 , 581676 , 581691 , 581649 , 618469 , 624260 , 466640 , 510406 , 581637 , 581687 , 581662 , 581707 , 581681 , 581701 , 429808 , 562106 , 581665 , 581682 , 603168 , 581686 );
Copy
4
2.56 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
4228
429808
466640
471538
502292
502297
502299
510406
562106
581628
581630
581637
581638
581641
581648
581649
581652
581654
581656
581660
581661
581662
581664
581665
581667
581669
581676
581681
581682
581683
581686
581687
581689
581691
581694
581695
581696
581697
581701
581703
581704
581706
581707
603168
618469
622216
624238
624239
624244
624255
624260
626739
685767
686054
686058
686059
686061
686063
686064
686065
686073
686076
698657
712794
]
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 (4228 , 429808 , 466640 , 471538 , 502292 , 502297 , 502299 , 510406 , 562106 , 581628 , 581630 , 581637 , 581638 , 581641 , 581648 , 581649 , 581652 , 581654 , 581656 , 581660 , 581661 , 581662 , 581664 , 581665 , 581667 , 581669 , 581676 , 581681 , 581682 , 581683 , 581686 , 581687 , 581689 , 581691 , 581694 , 581695 , 581696 , 581697 , 581701 , 581703 , 581704 , 581706 , 581707 , 603168 , 618469 , 622216 , 624238 , 624239 , 624244 , 624255 , 624260 , 626739 , 685767 , 686054 , 686058 , 686059 , 686061 , 686063 , 686064 , 686065 , 686073 , 686076 , 698657 , 712794 );
Copy
5
83.98 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
4228
429808
466640
471538
502292
502297
502299
510406
562106
581628
581630
581637
581638
581641
581648
581649
581652
581654
581656
581660
581661
581662
581664
581665
581667
581669
581676
581681
581682
581683
581686
581687
581689
581691
581694
581695
581696
581697
581701
581703
581704
581706
581707
603168
618469
622216
624238
624239
624244
624255
624260
626739
685767
686054
686058
686059
686061
686063
686064
686065
686073
686076
698657
712794
]
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 (4228 , 429808 , 466640 , 471538 , 502292 , 502297 , 502299 , 510406 , 562106 , 581628 , 581630 , 581637 , 581638 , 581641 , 581648 , 581649 , 581652 , 581654 , 581656 , 581660 , 581661 , 581662 , 581664 , 581665 , 581667 , 581669 , 581676 , 581681 , 581682 , 581683 , 581686 , 581687 , 581689 , 581691 , 581694 , 581695 , 581696 , 581697 , 581701 , 581703 , 581704 , 581706 , 581707 , 603168 , 618469 , 622216 , 624238 , 624239 , 624244 , 624255 , 624260 , 626739 , 685767 , 686054 , 686058 , 686059 , 686061 , 686063 , 686064 , 686065 , 686073 , 686076 , 698657 , 712794 );
Copy