3
13.41 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
631194
641975
810109
630221
632258
633497
480707
644986
530659
647837
555789
628332
628383
508437
453043
662222
630077
811507
527205
526199
453364
505279
533013
565501
599967
675017
590444
532816
647854
677783
696213
630550
419627
455207
545418
527931
570736
473476
608441
453039
502755
533948
628333
627725
630531
523565
556741
707391
666894
639719
637413
486336
621330
616994
453028
472845
457974
635275
554119
669574
510371
496086
457963
526203
561515
581968
622407
593992
528923
646826
]
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 (631194 , 641975 , 810109 , 630221 , 632258 , 633497 , 480707 , 644986 , 530659 , 647837 , 555789 , 628332 , 628383 , 508437 , 453043 , 662222 , 630077 , 811507 , 527205 , 526199 , 453364 , 505279 , 533013 , 565501 , 599967 , 675017 , 590444 , 532816 , 647854 , 677783 , 696213 , 630550 , 419627 , 455207 , 545418 , 527931 , 570736 , 473476 , 608441 , 453039 , 502755 , 533948 , 628333 , 627725 , 630531 , 523565 , 556741 , 707391 , 666894 , 639719 , 637413 , 486336 , 621330 , 616994 , 453028 , 472845 , 457974 , 635275 , 554119 , 669574 , 510371 , 496086 , 457963 , 526203 , 561515 , 581968 , 622407 , 593992 , 528923 , 646826 );
Copy
4
208.43 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
419627
453028
453039
453043
453364
455207
457963
457974
472845
473476
480707
486336
496086
502755
505279
508437
510371
523565
526199
526203
527205
527931
528923
530659
532816
533013
533948
545418
554119
555789
556741
561515
565501
570736
581968
590444
593992
599967
608441
616994
621330
622407
627725
628332
628333
628383
630077
630221
630531
630550
631194
632258
633497
635275
637413
639719
641975
644986
646826
647837
647854
662222
666894
669574
675017
677783
696213
707391
810109
811507
]
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 (419627 , 453028 , 453039 , 453043 , 453364 , 455207 , 457963 , 457974 , 472845 , 473476 , 480707 , 486336 , 496086 , 502755 , 505279 , 508437 , 510371 , 523565 , 526199 , 526203 , 527205 , 527931 , 528923 , 530659 , 532816 , 533013 , 533948 , 545418 , 554119 , 555789 , 556741 , 561515 , 565501 , 570736 , 581968 , 590444 , 593992 , 599967 , 608441 , 616994 , 621330 , 622407 , 627725 , 628332 , 628333 , 628383 , 630077 , 630221 , 630531 , 630550 , 631194 , 632258 , 633497 , 635275 , 637413 , 639719 , 641975 , 644986 , 646826 , 647837 , 647854 , 662222 , 666894 , 669574 , 675017 , 677783 , 696213 , 707391 , 810109 , 811507 );
Copy
5
93.79 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
419627
453028
453039
453043
453364
455207
457963
457974
472845
473476
480707
486336
496086
502755
505279
508437
510371
523565
526199
526203
527205
527931
528923
530659
532816
533013
533948
545418
554119
555789
556741
561515
565501
570736
581968
590444
593992
599967
608441
616994
621330
622407
627725
628332
628333
628383
630077
630221
630531
630550
631194
632258
633497
635275
637413
639719
641975
644986
646826
647837
647854
662222
666894
669574
675017
677783
696213
707391
810109
811507
]
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 (419627 , 453028 , 453039 , 453043 , 453364 , 455207 , 457963 , 457974 , 472845 , 473476 , 480707 , 486336 , 496086 , 502755 , 505279 , 508437 , 510371 , 523565 , 526199 , 526203 , 527205 , 527931 , 528923 , 530659 , 532816 , 533013 , 533948 , 545418 , 554119 , 555789 , 556741 , 561515 , 565501 , 570736 , 581968 , 590444 , 593992 , 599967 , 608441 , 616994 , 621330 , 622407 , 627725 , 628332 , 628333 , 628383 , 630077 , 630221 , 630531 , 630550 , 631194 , 632258 , 633497 , 635275 , 637413 , 639719 , 641975 , 644986 , 646826 , 647837 , 647854 , 662222 , 666894 , 669574 , 675017 , 677783 , 696213 , 707391 , 810109 , 811507 );
Copy