3
8.48 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
553259
547130
61051
480801
577251
690925
393124
785675
416294
672233
771053
712265
643149
457980
499027
391976
672251
692714
502766
658994
672248
518011
593002
583468
384165
489342
425422
396337
418053
672264
587545
396784
398354
418059
452538
412122
477407
458617
780715
556365
518949
776932
420067
461899
504963
458623
458384
521048
771308
676241
778383
418057
558578
754135
606493
589769
531083
546783
497656
418051
615447
567357
558201
]
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 (553259 , 547130 , 61051 , 480801 , 577251 , 690925 , 393124 , 785675 , 416294 , 672233 , 771053 , 712265 , 643149 , 457980 , 499027 , 391976 , 672251 , 692714 , 502766 , 658994 , 672248 , 518011 , 593002 , 583468 , 384165 , 489342 , 425422 , 396337 , 418053 , 672264 , 587545 , 396784 , 398354 , 418059 , 452538 , 412122 , 477407 , 458617 , 780715 , 556365 , 518949 , 776932 , 420067 , 461899 , 504963 , 458623 , 458384 , 521048 , 771308 , 676241 , 778383 , 418057 , 558578 , 754135 , 606493 , 589769 , 531083 , 546783 , 497656 , 418051 , 615447 , 567357 , 558201 );
Copy
4
2.41 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
61051
384165
391976
393124
396337
396784
398354
412122
416294
418051
418053
418057
418059
420067
425422
452538
457980
458384
458617
458623
461899
477407
480801
489342
497656
499027
502766
504963
518011
518949
521048
531083
546783
547130
553259
556365
558201
558578
567357
577251
583468
587545
589769
593002
606493
615447
643149
658994
672233
672248
672251
672264
676241
690925
692714
712265
754135
771053
771308
776932
778383
780715
785675
]
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 (61051 , 384165 , 391976 , 393124 , 396337 , 396784 , 398354 , 412122 , 416294 , 418051 , 418053 , 418057 , 418059 , 420067 , 425422 , 452538 , 457980 , 458384 , 458617 , 458623 , 461899 , 477407 , 480801 , 489342 , 497656 , 499027 , 502766 , 504963 , 518011 , 518949 , 521048 , 531083 , 546783 , 547130 , 553259 , 556365 , 558201 , 558578 , 567357 , 577251 , 583468 , 587545 , 589769 , 593002 , 606493 , 615447 , 643149 , 658994 , 672233 , 672248 , 672251 , 672264 , 676241 , 690925 , 692714 , 712265 , 754135 , 771053 , 771308 , 776932 , 778383 , 780715 , 785675 );
Copy
5
119.29 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
61051
384165
391976
393124
396337
396784
398354
412122
416294
418051
418053
418057
418059
420067
425422
452538
457980
458384
458617
458623
461899
477407
480801
489342
497656
499027
502766
504963
518011
518949
521048
531083
546783
547130
553259
556365
558201
558578
567357
577251
583468
587545
589769
593002
606493
615447
643149
658994
672233
672248
672251
672264
676241
690925
692714
712265
754135
771053
771308
776932
778383
780715
785675
]
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 (61051 , 384165 , 391976 , 393124 , 396337 , 396784 , 398354 , 412122 , 416294 , 418051 , 418053 , 418057 , 418059 , 420067 , 425422 , 452538 , 457980 , 458384 , 458617 , 458623 , 461899 , 477407 , 480801 , 489342 , 497656 , 499027 , 502766 , 504963 , 518011 , 518949 , 521048 , 531083 , 546783 , 547130 , 553259 , 556365 , 558201 , 558578 , 567357 , 577251 , 583468 , 587545 , 589769 , 593002 , 606493 , 615447 , 643149 , 658994 , 672233 , 672248 , 672251 , 672264 , 676241 , 690925 , 692714 , 712265 , 754135 , 771053 , 771308 , 776932 , 778383 , 780715 , 785675 );
Copy