4
8.96 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
447229
451273
468186
438800
456328
536819
520411
490129
486532
529276
382245
451267
463795
516363
525729
529565
511919
519715
552795
548837
653523
545273
557113
557533
586358
588620
625165
629457
419235
443060
479560
476839
439560
424288
516490
493375
497207
492196
521910
432243
515435
498459
568079
588022
477772
503136
492229
509440
525727
620985
596904
584602
603612
603092
521666
512927
486864
627089
509433
523033
611525
604364
562790
]
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 (447229 , 451273 , 468186 , 438800 , 456328 , 536819 , 520411 , 490129 , 486532 , 529276 , 382245 , 451267 , 463795 , 516363 , 525729 , 529565 , 511919 , 519715 , 552795 , 548837 , 653523 , 545273 , 557113 , 557533 , 586358 , 588620 , 625165 , 629457 , 419235 , 443060 , 479560 , 476839 , 439560 , 424288 , 516490 , 493375 , 497207 , 492196 , 521910 , 432243 , 515435 , 498459 , 568079 , 588022 , 477772 , 503136 , 492229 , 509440 , 525727 , 620985 , 596904 , 584602 , 603612 , 603092 , 521666 , 512927 , 486864 , 627089 , 509433 , 523033 , 611525 , 604364 , 562790 );
Copy
5
1.93 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
382245
419235
424288
432243
438800
439560
443060
447229
451267
451273
456328
463795
468186
476839
477772
479560
486532
486864
490129
492196
492229
493375
497207
498459
503136
509433
509440
511919
512927
515435
516363
516490
519715
520411
521666
521910
523033
525727
525729
529276
529565
536819
545273
548837
552795
557113
557533
562790
568079
584602
586358
588022
588620
596904
603092
603612
604364
611525
620985
625165
627089
629457
653523
]
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 (382245 , 419235 , 424288 , 432243 , 438800 , 439560 , 443060 , 447229 , 451267 , 451273 , 456328 , 463795 , 468186 , 476839 , 477772 , 479560 , 486532 , 486864 , 490129 , 492196 , 492229 , 493375 , 497207 , 498459 , 503136 , 509433 , 509440 , 511919 , 512927 , 515435 , 516363 , 516490 , 519715 , 520411 , 521666 , 521910 , 523033 , 525727 , 525729 , 529276 , 529565 , 536819 , 545273 , 548837 , 552795 , 557113 , 557533 , 562790 , 568079 , 584602 , 586358 , 588022 , 588620 , 596904 , 603092 , 603612 , 604364 , 611525 , 620985 , 625165 , 627089 , 629457 , 653523 );
Copy
6
91.53 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
382245
419235
424288
432243
438800
439560
443060
447229
451267
451273
456328
463795
468186
476839
477772
479560
486532
486864
490129
492196
492229
493375
497207
498459
503136
509433
509440
511919
512927
515435
516363
516490
519715
520411
521666
521910
523033
525727
525729
529276
529565
536819
545273
548837
552795
557113
557533
562790
568079
584602
586358
588022
588620
596904
603092
603612
604364
611525
620985
625165
627089
629457
653523
]
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 (382245 , 419235 , 424288 , 432243 , 438800 , 439560 , 443060 , 447229 , 451267 , 451273 , 456328 , 463795 , 468186 , 476839 , 477772 , 479560 , 486532 , 486864 , 490129 , 492196 , 492229 , 493375 , 497207 , 498459 , 503136 , 509433 , 509440 , 511919 , 512927 , 515435 , 516363 , 516490 , 519715 , 520411 , 521666 , 521910 , 523033 , 525727 , 525729 , 529276 , 529565 , 536819 , 545273 , 548837 , 552795 , 557113 , 557533 , 562790 , 568079 , 584602 , 586358 , 588022 , 588620 , 596904 , 603092 , 603612 , 604364 , 611525 , 620985 , 625165 , 627089 , 629457 , 653523 );
Copy