3
12.26 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
465004
472399
526563
567016
684845
654459
685982
563325
566041
615318
623143
605644
390815
480766
123614
429231
398676
501777
524185
489370
489630
501776
451706
569299
565188
672671
683588
688003
600381
628537
429223
462490
447524
473974
449678
455653
501804
519661
519486
540543
563854
677020
447513
469061
446085
501748
513768
524016
677060
428522
517358
465549
506576
566693
561452
677025
466979
618442
413826
492267
599452
625675
565067
]
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 (465004 , 472399 , 526563 , 567016 , 684845 , 654459 , 685982 , 563325 , 566041 , 615318 , 623143 , 605644 , 390815 , 480766 , 123614 , 429231 , 398676 , 501777 , 524185 , 489370 , 489630 , 501776 , 451706 , 569299 , 565188 , 672671 , 683588 , 688003 , 600381 , 628537 , 429223 , 462490 , 447524 , 473974 , 449678 , 455653 , 501804 , 519661 , 519486 , 540543 , 563854 , 677020 , 447513 , 469061 , 446085 , 501748 , 513768 , 524016 , 677060 , 428522 , 517358 , 465549 , 506576 , 566693 , 561452 , 677025 , 466979 , 618442 , 413826 , 492267 , 599452 , 625675 , 565067 );
Copy
4
3.54 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
123614
390815
398676
413826
428522
429223
429231
446085
447513
447524
449678
451706
455653
462490
465004
465549
466979
469061
472399
473974
480766
489370
489630
492267
501748
501776
501777
501804
506576
513768
517358
519486
519661
524016
524185
526563
540543
561452
563325
563854
565067
565188
566041
566693
567016
569299
599452
600381
605644
615318
618442
623143
625675
628537
654459
672671
677020
677025
677060
683588
684845
685982
688003
]
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 (123614 , 390815 , 398676 , 413826 , 428522 , 429223 , 429231 , 446085 , 447513 , 447524 , 449678 , 451706 , 455653 , 462490 , 465004 , 465549 , 466979 , 469061 , 472399 , 473974 , 480766 , 489370 , 489630 , 492267 , 501748 , 501776 , 501777 , 501804 , 506576 , 513768 , 517358 , 519486 , 519661 , 524016 , 524185 , 526563 , 540543 , 561452 , 563325 , 563854 , 565067 , 565188 , 566041 , 566693 , 567016 , 569299 , 599452 , 600381 , 605644 , 615318 , 618442 , 623143 , 625675 , 628537 , 654459 , 672671 , 677020 , 677025 , 677060 , 683588 , 684845 , 685982 , 688003 );
Copy
5
92.40 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
123614
390815
398676
413826
428522
429223
429231
446085
447513
447524
449678
451706
455653
462490
465004
465549
466979
469061
472399
473974
480766
489370
489630
492267
501748
501776
501777
501804
506576
513768
517358
519486
519661
524016
524185
526563
540543
561452
563325
563854
565067
565188
566041
566693
567016
569299
599452
600381
605644
615318
618442
623143
625675
628537
654459
672671
677020
677025
677060
683588
684845
685982
688003
]
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 (123614 , 390815 , 398676 , 413826 , 428522 , 429223 , 429231 , 446085 , 447513 , 447524 , 449678 , 451706 , 455653 , 462490 , 465004 , 465549 , 466979 , 469061 , 472399 , 473974 , 480766 , 489370 , 489630 , 492267 , 501748 , 501776 , 501777 , 501804 , 506576 , 513768 , 517358 , 519486 , 519661 , 524016 , 524185 , 526563 , 540543 , 561452 , 563325 , 563854 , 565067 , 565188 , 566041 , 566693 , 567016 , 569299 , 599452 , 600381 , 605644 , 615318 , 618442 , 623143 , 625675 , 628537 , 654459 , 672671 , 677020 , 677025 , 677060 , 683588 , 684845 , 685982 , 688003 );
Copy