3
12.59 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
551042
789270
597807
505622
704547
413074
515167
716475
664845
589808
776025
515185
475452
663860
580717
510886
572744
622111
746876
766269
748138
776022
541623
671741
694154
580723
589139
806420
804469
423375
556389
560634
649645
684547
589134
752155
474024
515262
559133
573263
581908
706945
720938
467793
540932
557977
558425
564808
581843
663507
550099
581349
550233
582789
680167
554311
556783
575810
600503
632046
748957
733870
563535
597170
579113
588244
582248
582229
]
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 (551042 , 789270 , 597807 , 505622 , 704547 , 413074 , 515167 , 716475 , 664845 , 589808 , 776025 , 515185 , 475452 , 663860 , 580717 , 510886 , 572744 , 622111 , 746876 , 766269 , 748138 , 776022 , 541623 , 671741 , 694154 , 580723 , 589139 , 806420 , 804469 , 423375 , 556389 , 560634 , 649645 , 684547 , 589134 , 752155 , 474024 , 515262 , 559133 , 573263 , 581908 , 706945 , 720938 , 467793 , 540932 , 557977 , 558425 , 564808 , 581843 , 663507 , 550099 , 581349 , 550233 , 582789 , 680167 , 554311 , 556783 , 575810 , 600503 , 632046 , 748957 , 733870 , 563535 , 597170 , 579113 , 588244 , 582248 , 582229 );
Copy
4
2.77 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
413074
423375
467793
474024
475452
505622
510886
515167
515185
515262
540932
541623
550099
550233
551042
554311
556389
556783
557977
558425
559133
560634
563535
564808
572744
573263
575810
579113
580717
580723
581349
581843
581908
582229
582248
582789
588244
589134
589139
589808
597170
597807
600503
622111
632046
649645
663507
663860
664845
671741
680167
684547
694154
704547
706945
716475
720938
733870
746876
748138
748957
752155
766269
776022
776025
789270
804469
806420
]
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 (413074 , 423375 , 467793 , 474024 , 475452 , 505622 , 510886 , 515167 , 515185 , 515262 , 540932 , 541623 , 550099 , 550233 , 551042 , 554311 , 556389 , 556783 , 557977 , 558425 , 559133 , 560634 , 563535 , 564808 , 572744 , 573263 , 575810 , 579113 , 580717 , 580723 , 581349 , 581843 , 581908 , 582229 , 582248 , 582789 , 588244 , 589134 , 589139 , 589808 , 597170 , 597807 , 600503 , 622111 , 632046 , 649645 , 663507 , 663860 , 664845 , 671741 , 680167 , 684547 , 694154 , 704547 , 706945 , 716475 , 720938 , 733870 , 746876 , 748138 , 748957 , 752155 , 766269 , 776022 , 776025 , 789270 , 804469 , 806420 );
Copy
5
86.27 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
413074
423375
467793
474024
475452
505622
510886
515167
515185
515262
540932
541623
550099
550233
551042
554311
556389
556783
557977
558425
559133
560634
563535
564808
572744
573263
575810
579113
580717
580723
581349
581843
581908
582229
582248
582789
588244
589134
589139
589808
597170
597807
600503
622111
632046
649645
663507
663860
664845
671741
680167
684547
694154
704547
706945
716475
720938
733870
746876
748138
748957
752155
766269
776022
776025
789270
804469
806420
]
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 (413074 , 423375 , 467793 , 474024 , 475452 , 505622 , 510886 , 515167 , 515185 , 515262 , 540932 , 541623 , 550099 , 550233 , 551042 , 554311 , 556389 , 556783 , 557977 , 558425 , 559133 , 560634 , 563535 , 564808 , 572744 , 573263 , 575810 , 579113 , 580717 , 580723 , 581349 , 581843 , 581908 , 582229 , 582248 , 582789 , 588244 , 589134 , 589139 , 589808 , 597170 , 597807 , 600503 , 622111 , 632046 , 649645 , 663507 , 663860 , 664845 , 671741 , 680167 , 684547 , 694154 , 704547 , 706945 , 716475 , 720938 , 733870 , 746876 , 748138 , 748957 , 752155 , 766269 , 776022 , 776025 , 789270 , 804469 , 806420 );
Copy