3
11.35 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
702178
486924
723680
564138
486403
798922
673074
605352
672379
672399
547024
553507
622008
737569
801589
510169
716361
622031
735375
385301
689345
430428
710575
599602
350700
185296
672372
381770
572846
672411
672355
798945
386374
501841
486927
603014
672361
74830
478865
515774
512617
566905
566543
672392
672384
601553
725553
756589
790572
468207
520949
504574
529288
578106
550400
551535
676303
553591
607303
628348
643656
462361
502907
551627
668508
752155
596417
609221
453139
473207
518839
573407
478802
502680
]
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 (702178 , 486924 , 723680 , 564138 , 486403 , 798922 , 673074 , 605352 , 672379 , 672399 , 547024 , 553507 , 622008 , 737569 , 801589 , 510169 , 716361 , 622031 , 735375 , 385301 , 689345 , 430428 , 710575 , 599602 , 350700 , 185296 , 672372 , 381770 , 572846 , 672411 , 672355 , 798945 , 386374 , 501841 , 486927 , 603014 , 672361 , 74830 , 478865 , 515774 , 512617 , 566905 , 566543 , 672392 , 672384 , 601553 , 725553 , 756589 , 790572 , 468207 , 520949 , 504574 , 529288 , 578106 , 550400 , 551535 , 676303 , 553591 , 607303 , 628348 , 643656 , 462361 , 502907 , 551627 , 668508 , 752155 , 596417 , 609221 , 453139 , 473207 , 518839 , 573407 , 478802 , 502680 );
Copy
4
2.90 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
74830
185296
350700
381770
385301
386374
430428
453139
462361
468207
473207
478802
478865
486403
486924
486927
501841
502680
502907
504574
510169
512617
515774
518839
520949
529288
547024
550400
551535
551627
553507
553591
564138
566543
566905
572846
573407
578106
596417
599602
601553
603014
605352
607303
609221
622008
622031
628348
643656
668508
672355
672361
672372
672379
672384
672392
672399
672411
673074
676303
689345
702178
710575
716361
723680
725553
735375
737569
752155
756589
790572
798922
798945
801589
]
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 (74830 , 185296 , 350700 , 381770 , 385301 , 386374 , 430428 , 453139 , 462361 , 468207 , 473207 , 478802 , 478865 , 486403 , 486924 , 486927 , 501841 , 502680 , 502907 , 504574 , 510169 , 512617 , 515774 , 518839 , 520949 , 529288 , 547024 , 550400 , 551535 , 551627 , 553507 , 553591 , 564138 , 566543 , 566905 , 572846 , 573407 , 578106 , 596417 , 599602 , 601553 , 603014 , 605352 , 607303 , 609221 , 622008 , 622031 , 628348 , 643656 , 668508 , 672355 , 672361 , 672372 , 672379 , 672384 , 672392 , 672399 , 672411 , 673074 , 676303 , 689345 , 702178 , 710575 , 716361 , 723680 , 725553 , 735375 , 737569 , 752155 , 756589 , 790572 , 798922 , 798945 , 801589 );
Copy
5
83.37 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
74830
185296
350700
381770
385301
386374
430428
453139
462361
468207
473207
478802
478865
486403
486924
486927
501841
502680
502907
504574
510169
512617
515774
518839
520949
529288
547024
550400
551535
551627
553507
553591
564138
566543
566905
572846
573407
578106
596417
599602
601553
603014
605352
607303
609221
622008
622031
628348
643656
668508
672355
672361
672372
672379
672384
672392
672399
672411
673074
676303
689345
702178
710575
716361
723680
725553
735375
737569
752155
756589
790572
798922
798945
801589
]
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 (74830 , 185296 , 350700 , 381770 , 385301 , 386374 , 430428 , 453139 , 462361 , 468207 , 473207 , 478802 , 478865 , 486403 , 486924 , 486927 , 501841 , 502680 , 502907 , 504574 , 510169 , 512617 , 515774 , 518839 , 520949 , 529288 , 547024 , 550400 , 551535 , 551627 , 553507 , 553591 , 564138 , 566543 , 566905 , 572846 , 573407 , 578106 , 596417 , 599602 , 601553 , 603014 , 605352 , 607303 , 609221 , 622008 , 622031 , 628348 , 643656 , 668508 , 672355 , 672361 , 672372 , 672379 , 672384 , 672392 , 672399 , 672411 , 673074 , 676303 , 689345 , 702178 , 710575 , 716361 , 723680 , 725553 , 735375 , 737569 , 752155 , 756589 , 790572 , 798922 , 798945 , 801589 );
Copy