83.57 ms (25.56%)
1
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
383272
385318
398224
411926
413084
415112
429349
451469
455502
464298
469853
474509
474813
475080
486516
491418
494778
495700
496599
498038
502740
502778
503304
505889
506454
510839
515846
520005
521061
523108
524126
526151
528836
529243
533849
546114
548796
549253
553927
555582
565506
569070
574817
576352
577356
585097
587921
599644
606824
610035
612698
619199
620203
622714
623364
643125
645917
748210
755996
770897
776054
801296
814796
820482
]
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 (383272 , 385318 , 398224 , 411926 , 413084 , 415112 , 429349 , 451469 , 455502 , 464298 , 469853 , 474509 , 474813 , 475080 , 486516 , 491418 , 494778 , 495700 , 496599 , 498038 , 502740 , 502778 , 503304 , 505889 , 506454 , 510839 , 515846 , 520005 , 521061 , 523108 , 524126 , 526151 , 528836 , 529243 , 533849 , 546114 , 548796 , 549253 , 553927 , 555582 , 565506 , 569070 , 574817 , 576352 , 577356 , 585097 , 587921 , 599644 , 606824 , 610035 , 612698 , 619199 , 620203 , 622714 , 623364 , 643125 , 645917 , 748210 , 755996 , 770897 , 776054 , 801296 , 814796 , 820482 );
Copy
9.80 ms (3.00%)
1
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
429349
469853
521061
526151
585097
814796
524126
505889
464298
574817
645917
549253
801296
755996
606824
776054
398224
474813
528836
496599
385318
411926
533849
548796
555582
576352
748210
770897
623364
451469
502778
506454
515846
820482
475080
510839
569070
619199
503304
486516
383272
553927
643125
622714
413084
455502
529243
491418
498038
502740
474509
415112
495700
599644
523108
577356
587921
620203
520005
494778
565506
612698
610035
546114
]
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 (429349 , 469853 , 521061 , 526151 , 585097 , 814796 , 524126 , 505889 , 464298 , 574817 , 645917 , 549253 , 801296 , 755996 , 606824 , 776054 , 398224 , 474813 , 528836 , 496599 , 385318 , 411926 , 533849 , 548796 , 555582 , 576352 , 748210 , 770897 , 623364 , 451469 , 502778 , 506454 , 515846 , 820482 , 475080 , 510839 , 569070 , 619199 , 503304 , 486516 , 383272 , 553927 , 643125 , 622714 , 413084 , 455502 , 529243 , 491418 , 498038 , 502740 , 474509 , 415112 , 495700 , 599644 , 523108 , 577356 , 587921 , 620203 , 520005 , 494778 , 565506 , 612698 , 610035 , 546114 );
Copy
2.40 ms (0.73%)
1
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
383272
385318
398224
411926
413084
415112
429349
451469
455502
464298
469853
474509
474813
475080
486516
491418
494778
495700
496599
498038
502740
502778
503304
505889
506454
510839
515846
520005
521061
523108
524126
526151
528836
529243
533849
546114
548796
549253
553927
555582
565506
569070
574817
576352
577356
585097
587921
599644
606824
610035
612698
619199
620203
622714
623364
643125
645917
748210
755996
770897
776054
801296
814796
820482
]
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 (383272 , 385318 , 398224 , 411926 , 413084 , 415112 , 429349 , 451469 , 455502 , 464298 , 469853 , 474509 , 474813 , 475080 , 486516 , 491418 , 494778 , 495700 , 496599 , 498038 , 502740 , 502778 , 503304 , 505889 , 506454 , 510839 , 515846 , 520005 , 521061 , 523108 , 524126 , 526151 , 528836 , 529243 , 533849 , 546114 , 548796 , 549253 , 553927 , 555582 , 565506 , 569070 , 574817 , 576352 , 577356 , 585097 , 587921 , 599644 , 606824 , 610035 , 612698 , 619199 , 620203 , 622714 , 623364 , 643125 , 645917 , 748210 , 755996 , 770897 , 776054 , 801296 , 814796 , 820482 );
Copy