3
14.12 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
796283
522827
646332
586221
780684
696099
734207
801080
540111
807129
638168
707807
654432
719083
741673
788754
749427
744695
734639
393320
738463
740280
739973
709698
748721
807104
517238
456083
452716
719207
708057
460405
484896
470347
34697
456209
669255
704339
483038
739701
506591
416043
474895
451088
460770
545707
446533
560183
425719
593876
595068
532974
537887
445947
427249
453317
530380
448537
445644
641930
719336
478540
496269
397400
607129
]
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 (796283 , 522827 , 646332 , 586221 , 780684 , 696099 , 734207 , 801080 , 540111 , 807129 , 638168 , 707807 , 654432 , 719083 , 741673 , 788754 , 749427 , 744695 , 734639 , 393320 , 738463 , 740280 , 739973 , 709698 , 748721 , 807104 , 517238 , 456083 , 452716 , 719207 , 708057 , 460405 , 484896 , 470347 , 34697 , 456209 , 669255 , 704339 , 483038 , 739701 , 506591 , 416043 , 474895 , 451088 , 460770 , 545707 , 446533 , 560183 , 425719 , 593876 , 595068 , 532974 , 537887 , 445947 , 427249 , 453317 , 530380 , 448537 , 445644 , 641930 , 719336 , 478540 , 496269 , 397400 , 607129 );
Copy
4
2.38 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
34697
393320
397400
416043
425719
427249
445644
445947
446533
448537
451088
452716
453317
456083
456209
460405
460770
470347
474895
478540
483038
484896
496269
506591
517238
522827
530380
532974
537887
540111
545707
560183
586221
593876
595068
607129
638168
641930
646332
654432
669255
696099
704339
707807
708057
709698
719083
719207
719336
734207
734639
738463
739701
739973
740280
741673
744695
748721
749427
780684
788754
796283
801080
807104
807129
]
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 (34697 , 393320 , 397400 , 416043 , 425719 , 427249 , 445644 , 445947 , 446533 , 448537 , 451088 , 452716 , 453317 , 456083 , 456209 , 460405 , 460770 , 470347 , 474895 , 478540 , 483038 , 484896 , 496269 , 506591 , 517238 , 522827 , 530380 , 532974 , 537887 , 540111 , 545707 , 560183 , 586221 , 593876 , 595068 , 607129 , 638168 , 641930 , 646332 , 654432 , 669255 , 696099 , 704339 , 707807 , 708057 , 709698 , 719083 , 719207 , 719336 , 734207 , 734639 , 738463 , 739701 , 739973 , 740280 , 741673 , 744695 , 748721 , 749427 , 780684 , 788754 , 796283 , 801080 , 807104 , 807129 );
Copy
5
79.76 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
34697
393320
397400
416043
425719
427249
445644
445947
446533
448537
451088
452716
453317
456083
456209
460405
460770
470347
474895
478540
483038
484896
496269
506591
517238
522827
530380
532974
537887
540111
545707
560183
586221
593876
595068
607129
638168
641930
646332
654432
669255
696099
704339
707807
708057
709698
719083
719207
719336
734207
734639
738463
739701
739973
740280
741673
744695
748721
749427
780684
788754
796283
801080
807104
807129
]
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 (34697 , 393320 , 397400 , 416043 , 425719 , 427249 , 445644 , 445947 , 446533 , 448537 , 451088 , 452716 , 453317 , 456083 , 456209 , 460405 , 460770 , 470347 , 474895 , 478540 , 483038 , 484896 , 496269 , 506591 , 517238 , 522827 , 530380 , 532974 , 537887 , 540111 , 545707 , 560183 , 586221 , 593876 , 595068 , 607129 , 638168 , 641930 , 646332 , 654432 , 669255 , 696099 , 704339 , 707807 , 708057 , 709698 , 719083 , 719207 , 719336 , 734207 , 734639 , 738463 , 739701 , 739973 , 740280 , 741673 , 744695 , 748721 , 749427 , 780684 , 788754 , 796283 , 801080 , 807104 , 807129 );
Copy