76.44 ms (69.03%)
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
341596
420262
465024
480346
484807
488473
494181
498022
510481
510695
512509
513207
515977
517175
519985
520310
520662
521099
523021
524013
525727
526435
526736
526857
532643
535025
541871
541889
542319
544478
548254
551913
556912
564129
571458
580262
585969
586429
587266
588253
590460
596823
597070
598190
598309
599967
600531
601314
602968
603011
603386
603462
604939
606349
608756
610404
611241
611375
613215
613489
613934
623813
624847
643377
649134
680207
681514
682522
]
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 (341596 , 420262 , 465024 , 480346 , 484807 , 488473 , 494181 , 498022 , 510481 , 510695 , 512509 , 513207 , 515977 , 517175 , 519985 , 520310 , 520662 , 521099 , 523021 , 524013 , 525727 , 526435 , 526736 , 526857 , 532643 , 535025 , 541871 , 541889 , 542319 , 544478 , 548254 , 551913 , 556912 , 564129 , 571458 , 580262 , 585969 , 586429 , 587266 , 588253 , 590460 , 596823 , 597070 , 598190 , 598309 , 599967 , 600531 , 601314 , 602968 , 603011 , 603386 , 603462 , 604939 , 606349 , 608756 , 610404 , 611241 , 611375 , 613215 , 613489 , 613934 , 623813 , 624847 , 643377 , 649134 , 680207 , 681514 , 682522 );
Copy
16.46 ms (14.86%)
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
571458
598190
602968
585969
598309
603386
606349
603462
494181
532643
544478
613934
608756
420262
510481
465024
512509
519985
520662
525727
580262
542319
548254
590460
588253
611241
643377
613489
551913
556912
624847
599967
526736
341596
498022
535025
515977
523021
510695
526857
484807
541889
564129
681514
682522
604939
623813
521099
517175
526435
649134
586429
610404
603011
480346
520310
541871
613215
680207
600531
596823
597070
611375
587266
524013
488473
513207
601314
]
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 (571458 , 598190 , 602968 , 585969 , 598309 , 603386 , 606349 , 603462 , 494181 , 532643 , 544478 , 613934 , 608756 , 420262 , 510481 , 465024 , 512509 , 519985 , 520662 , 525727 , 580262 , 542319 , 548254 , 590460 , 588253 , 611241 , 643377 , 613489 , 551913 , 556912 , 624847 , 599967 , 526736 , 341596 , 498022 , 535025 , 515977 , 523021 , 510695 , 526857 , 484807 , 541889 , 564129 , 681514 , 682522 , 604939 , 623813 , 521099 , 517175 , 526435 , 649134 , 586429 , 610404 , 603011 , 480346 , 520310 , 541871 , 613215 , 680207 , 600531 , 596823 , 597070 , 611375 , 587266 , 524013 , 488473 , 513207 , 601314 );
Copy
2.71 ms (2.45%)
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
341596
420262
465024
480346
484807
488473
494181
498022
510481
510695
512509
513207
515977
517175
519985
520310
520662
521099
523021
524013
525727
526435
526736
526857
532643
535025
541871
541889
542319
544478
548254
551913
556912
564129
571458
580262
585969
586429
587266
588253
590460
596823
597070
598190
598309
599967
600531
601314
602968
603011
603386
603462
604939
606349
608756
610404
611241
611375
613215
613489
613934
623813
624847
643377
649134
680207
681514
682522
]
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 (341596 , 420262 , 465024 , 480346 , 484807 , 488473 , 494181 , 498022 , 510481 , 510695 , 512509 , 513207 , 515977 , 517175 , 519985 , 520310 , 520662 , 521099 , 523021 , 524013 , 525727 , 526435 , 526736 , 526857 , 532643 , 535025 , 541871 , 541889 , 542319 , 544478 , 548254 , 551913 , 556912 , 564129 , 571458 , 580262 , 585969 , 586429 , 587266 , 588253 , 590460 , 596823 , 597070 , 598190 , 598309 , 599967 , 600531 , 601314 , 602968 , 603011 , 603386 , 603462 , 604939 , 606349 , 608756 , 610404 , 611241 , 611375 , 613215 , 613489 , 613934 , 623813 , 624847 , 643377 , 649134 , 680207 , 681514 , 682522 );
Copy