3
10.27 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
467105
454737
800427
797769
536224
630796
601542
529799
599906
540156
540124
540158
757463
540171
554732
811667
755419
769768
787858
766812
763758
796664
803184
683840
641313
117610
798585
422589
740331
515806
797866
713115
625157
627818
687245
477206
545857
544829
491465
532932
665229
810991
456610
749732
466166
395879
560062
469084
467612
554851
566812
406800
468922
583080
728499
497976
453553
546211
501785
552387
476171
468893
401232
815297
644114
396238
598590
816007
633173
687484
403879
519686
624226
]
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 (467105 , 454737 , 800427 , 797769 , 536224 , 630796 , 601542 , 529799 , 599906 , 540156 , 540124 , 540158 , 757463 , 540171 , 554732 , 811667 , 755419 , 769768 , 787858 , 766812 , 763758 , 796664 , 803184 , 683840 , 641313 , 117610 , 798585 , 422589 , 740331 , 515806 , 797866 , 713115 , 625157 , 627818 , 687245 , 477206 , 545857 , 544829 , 491465 , 532932 , 665229 , 810991 , 456610 , 749732 , 466166 , 395879 , 560062 , 469084 , 467612 , 554851 , 566812 , 406800 , 468922 , 583080 , 728499 , 497976 , 453553 , 546211 , 501785 , 552387 , 476171 , 468893 , 401232 , 815297 , 644114 , 396238 , 598590 , 816007 , 633173 , 687484 , 403879 , 519686 , 624226 );
Copy
4
3.21 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
117610
395879
396238
401232
403879
406800
422589
453553
454737
456610
466166
467105
467612
468893
468922
469084
476171
477206
491465
497976
501785
515806
519686
529799
532932
536224
540124
540156
540158
540171
544829
545857
546211
552387
554732
554851
560062
566812
583080
598590
599906
601542
624226
625157
627818
630796
633173
641313
644114
665229
683840
687245
687484
713115
728499
740331
749732
755419
757463
763758
766812
769768
787858
796664
797769
797866
798585
800427
803184
810991
811667
815297
816007
]
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 (117610 , 395879 , 396238 , 401232 , 403879 , 406800 , 422589 , 453553 , 454737 , 456610 , 466166 , 467105 , 467612 , 468893 , 468922 , 469084 , 476171 , 477206 , 491465 , 497976 , 501785 , 515806 , 519686 , 529799 , 532932 , 536224 , 540124 , 540156 , 540158 , 540171 , 544829 , 545857 , 546211 , 552387 , 554732 , 554851 , 560062 , 566812 , 583080 , 598590 , 599906 , 601542 , 624226 , 625157 , 627818 , 630796 , 633173 , 641313 , 644114 , 665229 , 683840 , 687245 , 687484 , 713115 , 728499 , 740331 , 749732 , 755419 , 757463 , 763758 , 766812 , 769768 , 787858 , 796664 , 797769 , 797866 , 798585 , 800427 , 803184 , 810991 , 811667 , 815297 , 816007 );
Copy
5
103.86 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
117610
395879
396238
401232
403879
406800
422589
453553
454737
456610
466166
467105
467612
468893
468922
469084
476171
477206
491465
497976
501785
515806
519686
529799
532932
536224
540124
540156
540158
540171
544829
545857
546211
552387
554732
554851
560062
566812
583080
598590
599906
601542
624226
625157
627818
630796
633173
641313
644114
665229
683840
687245
687484
713115
728499
740331
749732
755419
757463
763758
766812
769768
787858
796664
797769
797866
798585
800427
803184
810991
811667
815297
816007
]
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 (117610 , 395879 , 396238 , 401232 , 403879 , 406800 , 422589 , 453553 , 454737 , 456610 , 466166 , 467105 , 467612 , 468893 , 468922 , 469084 , 476171 , 477206 , 491465 , 497976 , 501785 , 515806 , 519686 , 529799 , 532932 , 536224 , 540124 , 540156 , 540158 , 540171 , 544829 , 545857 , 546211 , 552387 , 554732 , 554851 , 560062 , 566812 , 583080 , 598590 , 599906 , 601542 , 624226 , 625157 , 627818 , 630796 , 633173 , 641313 , 644114 , 665229 , 683840 , 687245 , 687484 , 713115 , 728499 , 740331 , 749732 , 755419 , 757463 , 763758 , 766812 , 769768 , 787858 , 796664 , 797769 , 797866 , 798585 , 800427 , 803184 , 810991 , 811667 , 815297 , 816007 );
Copy