72.05 ms (21.78%)
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
454778
458746
461771
483214
487472
491654
491659
491664
501262
511707
511711
511753
512247
512411
512828
513284
517465
522565
522593
524365
524694
527625
529173
533289
541396
548297
554365
574792
574916
575066
575097
575139
575203
575211
575458
575464
575486
575503
575748
575775
575802
575807
576023
576047
576063
576079
576080
576100
576113
576370
576371
576372
576412
586629
587763
595986
597112
597119
597152
620670
620754
637294
684029
766570
]
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 (454778 , 458746 , 461771 , 483214 , 487472 , 491654 , 491659 , 491664 , 501262 , 511707 , 511711 , 511753 , 512247 , 512411 , 512828 , 513284 , 517465 , 522565 , 522593 , 524365 , 524694 , 527625 , 529173 , 533289 , 541396 , 548297 , 554365 , 574792 , 574916 , 575066 , 575097 , 575139 , 575203 , 575211 , 575458 , 575464 , 575486 , 575503 , 575748 , 575775 , 575802 , 575807 , 576023 , 576047 , 576063 , 576079 , 576080 , 576100 , 576113 , 576370 , 576371 , 576372 , 576412 , 586629 , 587763 , 595986 , 597112 , 597119 , 597152 , 620670 , 620754 , 637294 , 684029 , 766570 );
Copy
9.65 ms (2.92%)
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
620670
766570
458746
513284
524694
574792
597119
487472
491664
454778
522593
529173
541396
575066
575486
575503
575097
575203
576063
576370
554365
575807
576371
684029
595986
511711
491654
483214
511707
512828
522565
574916
512247
548297
575458
575464
576100
576372
575748
576047
576079
587763
461771
511753
491659
524365
527625
575211
576023
575775
637294
597112
517465
575802
575139
576412
586629
576080
501262
512411
620754
597152
576113
533289
]
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 (620670 , 766570 , 458746 , 513284 , 524694 , 574792 , 597119 , 487472 , 491664 , 454778 , 522593 , 529173 , 541396 , 575066 , 575486 , 575503 , 575097 , 575203 , 576063 , 576370 , 554365 , 575807 , 576371 , 684029 , 595986 , 511711 , 491654 , 483214 , 511707 , 512828 , 522565 , 574916 , 512247 , 548297 , 575458 , 575464 , 576100 , 576372 , 575748 , 576047 , 576079 , 587763 , 461771 , 511753 , 491659 , 524365 , 527625 , 575211 , 576023 , 575775 , 637294 , 597112 , 517465 , 575802 , 575139 , 576412 , 586629 , 576080 , 501262 , 512411 , 620754 , 597152 , 576113 , 533289 );
Copy
2.35 ms (0.71%)
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
454778
458746
461771
483214
487472
491654
491659
491664
501262
511707
511711
511753
512247
512411
512828
513284
517465
522565
522593
524365
524694
527625
529173
533289
541396
548297
554365
574792
574916
575066
575097
575139
575203
575211
575458
575464
575486
575503
575748
575775
575802
575807
576023
576047
576063
576079
576080
576100
576113
576370
576371
576372
576412
586629
587763
595986
597112
597119
597152
620670
620754
637294
684029
766570
]
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 (454778 , 458746 , 461771 , 483214 , 487472 , 491654 , 491659 , 491664 , 501262 , 511707 , 511711 , 511753 , 512247 , 512411 , 512828 , 513284 , 517465 , 522565 , 522593 , 524365 , 524694 , 527625 , 529173 , 533289 , 541396 , 548297 , 554365 , 574792 , 574916 , 575066 , 575097 , 575139 , 575203 , 575211 , 575458 , 575464 , 575486 , 575503 , 575748 , 575775 , 575802 , 575807 , 576023 , 576047 , 576063 , 576079 , 576080 , 576100 , 576113 , 576370 , 576371 , 576372 , 576412 , 586629 , 587763 , 595986 , 597112 , 597119 , 597152 , 620670 , 620754 , 637294 , 684029 , 766570 );
Copy