280.70 ms (68.64%)
1
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
414374
419627
453028
453039
453043
453364
455207
457963
457974
472845
473476
480707
486336
502755
505279
506397
508437
510371
523565
524508
526199
526203
527205
527931
528923
532816
533013
533948
545418
554119
556741
561515
565501
570736
581968
590444
593992
599967
608441
616994
621330
622407
627725
628332
628333
628383
630077
630531
630550
631202
635275
637413
639719
644986
646826
647854
662222
666894
669574
675017
677783
696213
707391
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 (414374 , 419627 , 453028 , 453039 , 453043 , 453364 , 455207 , 457963 , 457974 , 472845 , 473476 , 480707 , 486336 , 502755 , 505279 , 506397 , 508437 , 510371 , 523565 , 524508 , 526199 , 526203 , 527205 , 527931 , 528923 , 532816 , 533013 , 533948 , 545418 , 554119 , 556741 , 561515 , 565501 , 570736 , 581968 , 590444 , 593992 , 599967 , 608441 , 616994 , 621330 , 622407 , 627725 , 628332 , 628333 , 628383 , 630077 , 630531 , 630550 , 631202 , 635275 , 637413 , 639719 , 644986 , 646826 , 647854 , 662222 , 666894 , 669574 , 675017 , 677783 , 696213 , 707391 , 811507 );
Copy
14.51 ms (3.55%)
1
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
414374
644986
628383
630077
811507
631202
508437
524508
628332
527205
480707
453364
505279
599967
526199
565501
662222
533013
419627
506397
455207
675017
647854
532816
677783
696213
545418
630550
590444
453043
570736
527931
608441
628333
630531
707391
666894
639719
627725
556741
523565
486336
637413
473476
453039
502755
533948
621330
635275
453028
472845
457974
616994
669574
510371
554119
457963
526203
561515
581968
593992
528923
622407
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 (414374 , 644986 , 628383 , 630077 , 811507 , 631202 , 508437 , 524508 , 628332 , 527205 , 480707 , 453364 , 505279 , 599967 , 526199 , 565501 , 662222 , 533013 , 419627 , 506397 , 455207 , 675017 , 647854 , 532816 , 677783 , 696213 , 545418 , 630550 , 590444 , 453043 , 570736 , 527931 , 608441 , 628333 , 630531 , 707391 , 666894 , 639719 , 627725 , 556741 , 523565 , 486336 , 637413 , 473476 , 453039 , 502755 , 533948 , 621330 , 635275 , 453028 , 472845 , 457974 , 616994 , 669574 , 510371 , 554119 , 457963 , 526203 , 561515 , 581968 , 593992 , 528923 , 622407 , 646826 );
Copy
3.39 ms (0.83%)
1
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
414374
419627
453028
453039
453043
453364
455207
457963
457974
472845
473476
480707
486336
502755
505279
506397
508437
510371
523565
524508
526199
526203
527205
527931
528923
532816
533013
533948
545418
554119
556741
561515
565501
570736
581968
590444
593992
599967
608441
616994
621330
622407
627725
628332
628333
628383
630077
630531
630550
631202
635275
637413
639719
644986
646826
647854
662222
666894
669574
675017
677783
696213
707391
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 (414374 , 419627 , 453028 , 453039 , 453043 , 453364 , 455207 , 457963 , 457974 , 472845 , 473476 , 480707 , 486336 , 502755 , 505279 , 506397 , 508437 , 510371 , 523565 , 524508 , 526199 , 526203 , 527205 , 527931 , 528923 , 532816 , 533013 , 533948 , 545418 , 554119 , 556741 , 561515 , 565501 , 570736 , 581968 , 590444 , 593992 , 599967 , 608441 , 616994 , 621330 , 622407 , 627725 , 628332 , 628333 , 628383 , 630077 , 630531 , 630550 , 631202 , 635275 , 637413 , 639719 , 644986 , 646826 , 647854 , 662222 , 666894 , 669574 , 675017 , 677783 , 696213 , 707391 , 811507 );
Copy