139.52 ms (76.73%)
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
420474
421074
421491
422807
424986
425967
425971
426003
426183
428846
429416
430315
432837
432852
435747
437835
442991
448944
449225
451272
451880
457463
460188
460248
460660
460669
460673
461594
467121
467932
474461
481161
486539
486834
489960
505843
510360
512451
513113
513116
513141
519013
519034
519038
523345
523351
523360
528084
528100
550720
562060
563903
564826
573393
579371
582416
582797
588101
601831
602959
609096
614097
622054
718996
806348
807394
820529
823198
]
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 (420474 , 421074 , 421491 , 422807 , 424986 , 425967 , 425971 , 426003 , 426183 , 428846 , 429416 , 430315 , 432837 , 432852 , 435747 , 437835 , 442991 , 448944 , 449225 , 451272 , 451880 , 457463 , 460188 , 460248 , 460660 , 460669 , 460673 , 461594 , 467121 , 467932 , 474461 , 481161 , 486539 , 486834 , 489960 , 505843 , 510360 , 512451 , 513113 , 513116 , 513141 , 519013 , 519034 , 519038 , 523345 , 523351 , 523360 , 528084 , 528100 , 550720 , 562060 , 563903 , 564826 , 573393 , 579371 , 582416 , 582797 , 588101 , 601831 , 602959 , 609096 , 614097 , 622054 , 718996 , 806348 , 807394 , 820529 , 823198 );
Copy
13.54 ms (7.45%)
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
588101
806348
601831
807394
523345
582797
426183
432852
428846
420474
563903
622054
718996
460188
609096
449225
460669
481161
579371
614097
602959
523351
422807
426003
562060
430315
460660
429416
519034
564826
467932
519013
442991
460248
461594
451880
486834
432837
486539
528084
505843
519038
523360
512451
437835
421491
550720
451272
425971
489960
435747
448944
582416
421074
424986
820529
457463
467121
513141
513116
425967
823198
474461
528100
513113
510360
460673
573393
]
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 (588101 , 806348 , 601831 , 807394 , 523345 , 582797 , 426183 , 432852 , 428846 , 420474 , 563903 , 622054 , 718996 , 460188 , 609096 , 449225 , 460669 , 481161 , 579371 , 614097 , 602959 , 523351 , 422807 , 426003 , 562060 , 430315 , 460660 , 429416 , 519034 , 564826 , 467932 , 519013 , 442991 , 460248 , 461594 , 451880 , 486834 , 432837 , 486539 , 528084 , 505843 , 519038 , 523360 , 512451 , 437835 , 421491 , 550720 , 451272 , 425971 , 489960 , 435747 , 448944 , 582416 , 421074 , 424986 , 820529 , 457463 , 467121 , 513141 , 513116 , 425967 , 823198 , 474461 , 528100 , 513113 , 510360 , 460673 , 573393 );
Copy
3.41 ms (1.87%)
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
420474
421074
421491
422807
424986
425967
425971
426003
426183
428846
429416
430315
432837
432852
435747
437835
442991
448944
449225
451272
451880
457463
460188
460248
460660
460669
460673
461594
467121
467932
474461
481161
486539
486834
489960
505843
510360
512451
513113
513116
513141
519013
519034
519038
523345
523351
523360
528084
528100
550720
562060
563903
564826
573393
579371
582416
582797
588101
601831
602959
609096
614097
622054
718996
806348
807394
820529
823198
]
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 (420474 , 421074 , 421491 , 422807 , 424986 , 425967 , 425971 , 426003 , 426183 , 428846 , 429416 , 430315 , 432837 , 432852 , 435747 , 437835 , 442991 , 448944 , 449225 , 451272 , 451880 , 457463 , 460188 , 460248 , 460660 , 460669 , 460673 , 461594 , 467121 , 467932 , 474461 , 481161 , 486539 , 486834 , 489960 , 505843 , 510360 , 512451 , 513113 , 513116 , 513141 , 519013 , 519034 , 519038 , 523345 , 523351 , 523360 , 528084 , 528100 , 550720 , 562060 , 563903 , 564826 , 573393 , 579371 , 582416 , 582797 , 588101 , 601831 , 602959 , 609096 , 614097 , 622054 , 718996 , 806348 , 807394 , 820529 , 823198 );
Copy