3
13.08 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
827973
537850
419552
485950
462104
470566
738347
388765
478339
425149
479128
464535
466983
734047
520271
499865
485942
460762
568325
549776
547536
424248
462183
622503
781924
776212
738367
520094
474777
742385
462095
466341
460533
466147
462085
518844
464534
594933
464965
499549
520660
466779
475897
439758
467055
487364
484375
478790
462105
490394
476341
460438
485937
478017
470762
462695
518862
454277
448696
466331
391943
554499
495238
387856
462279
465317
452936
485691
471976
573727
481930
477707
484656
484665
]
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 (827973 , 537850 , 419552 , 485950 , 462104 , 470566 , 738347 , 388765 , 478339 , 425149 , 479128 , 464535 , 466983 , 734047 , 520271 , 499865 , 485942 , 460762 , 568325 , 549776 , 547536 , 424248 , 462183 , 622503 , 781924 , 776212 , 738367 , 520094 , 474777 , 742385 , 462095 , 466341 , 460533 , 466147 , 462085 , 518844 , 464534 , 594933 , 464965 , 499549 , 520660 , 466779 , 475897 , 439758 , 467055 , 487364 , 484375 , 478790 , 462105 , 490394 , 476341 , 460438 , 485937 , 478017 , 470762 , 462695 , 518862 , 454277 , 448696 , 466331 , 391943 , 554499 , 495238 , 387856 , 462279 , 465317 , 452936 , 485691 , 471976 , 573727 , 481930 , 477707 , 484656 , 484665 );
Copy
4
2.68 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
387856
388765
391943
419552
424248
425149
439758
448696
452936
454277
460438
460533
460762
462085
462095
462104
462105
462183
462279
462695
464534
464535
464965
465317
466147
466331
466341
466779
466983
467055
470566
470762
471976
474777
475897
476341
477707
478017
478339
478790
479128
481930
484375
484656
484665
485691
485937
485942
485950
487364
490394
495238
499549
499865
518844
518862
520094
520271
520660
537850
547536
549776
554499
568325
573727
594933
622503
734047
738347
738367
742385
776212
781924
827973
]
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 (387856 , 388765 , 391943 , 419552 , 424248 , 425149 , 439758 , 448696 , 452936 , 454277 , 460438 , 460533 , 460762 , 462085 , 462095 , 462104 , 462105 , 462183 , 462279 , 462695 , 464534 , 464535 , 464965 , 465317 , 466147 , 466331 , 466341 , 466779 , 466983 , 467055 , 470566 , 470762 , 471976 , 474777 , 475897 , 476341 , 477707 , 478017 , 478339 , 478790 , 479128 , 481930 , 484375 , 484656 , 484665 , 485691 , 485937 , 485942 , 485950 , 487364 , 490394 , 495238 , 499549 , 499865 , 518844 , 518862 , 520094 , 520271 , 520660 , 537850 , 547536 , 549776 , 554499 , 568325 , 573727 , 594933 , 622503 , 734047 , 738347 , 738367 , 742385 , 776212 , 781924 , 827973 );
Copy
5
91.22 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
387856
388765
391943
419552
424248
425149
439758
448696
452936
454277
460438
460533
460762
462085
462095
462104
462105
462183
462279
462695
464534
464535
464965
465317
466147
466331
466341
466779
466983
467055
470566
470762
471976
474777
475897
476341
477707
478017
478339
478790
479128
481930
484375
484656
484665
485691
485937
485942
485950
487364
490394
495238
499549
499865
518844
518862
520094
520271
520660
537850
547536
549776
554499
568325
573727
594933
622503
734047
738347
738367
742385
776212
781924
827973
]
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 (387856 , 388765 , 391943 , 419552 , 424248 , 425149 , 439758 , 448696 , 452936 , 454277 , 460438 , 460533 , 460762 , 462085 , 462095 , 462104 , 462105 , 462183 , 462279 , 462695 , 464534 , 464535 , 464965 , 465317 , 466147 , 466331 , 466341 , 466779 , 466983 , 467055 , 470566 , 470762 , 471976 , 474777 , 475897 , 476341 , 477707 , 478017 , 478339 , 478790 , 479128 , 481930 , 484375 , 484656 , 484665 , 485691 , 485937 , 485942 , 485950 , 487364 , 490394 , 495238 , 499549 , 499865 , 518844 , 518862 , 520094 , 520271 , 520660 , 537850 , 547536 , 549776 , 554499 , 568325 , 573727 , 594933 , 622503 , 734047 , 738347 , 738367 , 742385 , 776212 , 781924 , 827973 );
Copy