3
10.78 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
587397
540968
514357
599725
565093
476861
590809
500268
450426
766141
443482
633225
525142
547557
418591
529177
526031
552272
434322
435437
590804
509818
667985
489281
445890
561346
522663
458564
810005
509998
513017
505526
593105
720262
494318
514772
497951
574141
464368
575713
608200
563553
414979
441645
509997
756703
587933
513832
514780
553190
605671
427326
510519
592382
437996
519392
453568
528425
452180
511602
493958
551816
457676
524535
]
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 (587397 , 540968 , 514357 , 599725 , 565093 , 476861 , 590809 , 500268 , 450426 , 766141 , 443482 , 633225 , 525142 , 547557 , 418591 , 529177 , 526031 , 552272 , 434322 , 435437 , 590804 , 509818 , 667985 , 489281 , 445890 , 561346 , 522663 , 458564 , 810005 , 509998 , 513017 , 505526 , 593105 , 720262 , 494318 , 514772 , 497951 , 574141 , 464368 , 575713 , 608200 , 563553 , 414979 , 441645 , 509997 , 756703 , 587933 , 513832 , 514780 , 553190 , 605671 , 427326 , 510519 , 592382 , 437996 , 519392 , 453568 , 528425 , 452180 , 511602 , 493958 , 551816 , 457676 , 524535 );
Copy
4
211.08 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
414979
418591
427326
434322
435437
437996
441645
443482
445890
450426
452180
453568
457676
458564
464368
476861
489281
493958
494318
497951
500268
505526
509818
509997
509998
510519
511602
513017
513832
514357
514772
514780
519392
522663
524535
525142
526031
528425
529177
540968
547557
551816
552272
553190
561346
563553
565093
574141
575713
587397
587933
590804
590809
592382
593105
599725
605671
608200
633225
667985
720262
756703
766141
810005
]
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 (414979 , 418591 , 427326 , 434322 , 435437 , 437996 , 441645 , 443482 , 445890 , 450426 , 452180 , 453568 , 457676 , 458564 , 464368 , 476861 , 489281 , 493958 , 494318 , 497951 , 500268 , 505526 , 509818 , 509997 , 509998 , 510519 , 511602 , 513017 , 513832 , 514357 , 514772 , 514780 , 519392 , 522663 , 524535 , 525142 , 526031 , 528425 , 529177 , 540968 , 547557 , 551816 , 552272 , 553190 , 561346 , 563553 , 565093 , 574141 , 575713 , 587397 , 587933 , 590804 , 590809 , 592382 , 593105 , 599725 , 605671 , 608200 , 633225 , 667985 , 720262 , 756703 , 766141 , 810005 );
Copy
5
88.70 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
414979
418591
427326
434322
435437
437996
441645
443482
445890
450426
452180
453568
457676
458564
464368
476861
489281
493958
494318
497951
500268
505526
509818
509997
509998
510519
511602
513017
513832
514357
514772
514780
519392
522663
524535
525142
526031
528425
529177
540968
547557
551816
552272
553190
561346
563553
565093
574141
575713
587397
587933
590804
590809
592382
593105
599725
605671
608200
633225
667985
720262
756703
766141
810005
]
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 (414979 , 418591 , 427326 , 434322 , 435437 , 437996 , 441645 , 443482 , 445890 , 450426 , 452180 , 453568 , 457676 , 458564 , 464368 , 476861 , 489281 , 493958 , 494318 , 497951 , 500268 , 505526 , 509818 , 509997 , 509998 , 510519 , 511602 , 513017 , 513832 , 514357 , 514772 , 514780 , 519392 , 522663 , 524535 , 525142 , 526031 , 528425 , 529177 , 540968 , 547557 , 551816 , 552272 , 553190 , 561346 , 563553 , 565093 , 574141 , 575713 , 587397 , 587933 , 590804 , 590809 , 592382 , 593105 , 599725 , 605671 , 608200 , 633225 , 667985 , 720262 , 756703 , 766141 , 810005 );
Copy