3
8.69 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
522499
492931
482952
395398
417878
606664
587711
474421
469637
462008
403891
445324
451127
446204
448284
509387
511016
516239
548422
561289
715234
612490
621973
593702
609807
724481
751572
804927
475556
463057
472620
506131
634725
450723
518328
503739
585771
595099
437344
607377
511295
527054
514677
519200
541241
552348
562866
605378
615680
596987
807914
612507
500135
500503
421797
519047
501734
514902
528877
619201
511184
675374
625235
492779
]
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 (522499 , 492931 , 482952 , 395398 , 417878 , 606664 , 587711 , 474421 , 469637 , 462008 , 403891 , 445324 , 451127 , 446204 , 448284 , 509387 , 511016 , 516239 , 548422 , 561289 , 715234 , 612490 , 621973 , 593702 , 609807 , 724481 , 751572 , 804927 , 475556 , 463057 , 472620 , 506131 , 634725 , 450723 , 518328 , 503739 , 585771 , 595099 , 437344 , 607377 , 511295 , 527054 , 514677 , 519200 , 541241 , 552348 , 562866 , 605378 , 615680 , 596987 , 807914 , 612507 , 500135 , 500503 , 421797 , 519047 , 501734 , 514902 , 528877 , 619201 , 511184 , 675374 , 625235 , 492779 );
Copy
4
3.05 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
395398
403891
417878
421797
437344
445324
446204
448284
450723
451127
462008
463057
469637
472620
474421
475556
482952
492779
492931
500135
500503
501734
503739
506131
509387
511016
511184
511295
514677
514902
516239
518328
519047
519200
522499
527054
528877
541241
548422
552348
561289
562866
585771
587711
593702
595099
596987
605378
606664
607377
609807
612490
612507
615680
619201
621973
625235
634725
675374
715234
724481
751572
804927
807914
]
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 (395398 , 403891 , 417878 , 421797 , 437344 , 445324 , 446204 , 448284 , 450723 , 451127 , 462008 , 463057 , 469637 , 472620 , 474421 , 475556 , 482952 , 492779 , 492931 , 500135 , 500503 , 501734 , 503739 , 506131 , 509387 , 511016 , 511184 , 511295 , 514677 , 514902 , 516239 , 518328 , 519047 , 519200 , 522499 , 527054 , 528877 , 541241 , 548422 , 552348 , 561289 , 562866 , 585771 , 587711 , 593702 , 595099 , 596987 , 605378 , 606664 , 607377 , 609807 , 612490 , 612507 , 615680 , 619201 , 621973 , 625235 , 634725 , 675374 , 715234 , 724481 , 751572 , 804927 , 807914 );
Copy
5
85.05 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
395398
403891
417878
421797
437344
445324
446204
448284
450723
451127
462008
463057
469637
472620
474421
475556
482952
492779
492931
500135
500503
501734
503739
506131
509387
511016
511184
511295
514677
514902
516239
518328
519047
519200
522499
527054
528877
541241
548422
552348
561289
562866
585771
587711
593702
595099
596987
605378
606664
607377
609807
612490
612507
615680
619201
621973
625235
634725
675374
715234
724481
751572
804927
807914
]
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 (395398 , 403891 , 417878 , 421797 , 437344 , 445324 , 446204 , 448284 , 450723 , 451127 , 462008 , 463057 , 469637 , 472620 , 474421 , 475556 , 482952 , 492779 , 492931 , 500135 , 500503 , 501734 , 503739 , 506131 , 509387 , 511016 , 511184 , 511295 , 514677 , 514902 , 516239 , 518328 , 519047 , 519200 , 522499 , 527054 , 528877 , 541241 , 548422 , 552348 , 561289 , 562866 , 585771 , 587711 , 593702 , 595099 , 596987 , 605378 , 606664 , 607377 , 609807 , 612490 , 612507 , 615680 , 619201 , 621973 , 625235 , 634725 , 675374 , 715234 , 724481 , 751572 , 804927 , 807914 );
Copy