286.33 ms (77.44%)
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
402724
421618
425076
434369
435406
441541
447311
447321
455687
455787
456523
457972
459963
465873
468363
474003
478006
487146
491194
493236
496454
497951
499734
503947
513568
534077
535447
539280
539293
547405
556519
571012
571235
585096
589979
597227
597260
600112
602199
603725
620783
622666
632695
634512
652519
652911
662137
684701
694715
701267
719347
722585
723003
723933
753155
757630
762986
765507
767417
772475
791851
800487
813075
]
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 (402724 , 421618 , 425076 , 434369 , 435406 , 441541 , 447311 , 447321 , 455687 , 455787 , 456523 , 457972 , 459963 , 465873 , 468363 , 474003 , 478006 , 487146 , 491194 , 493236 , 496454 , 497951 , 499734 , 503947 , 513568 , 534077 , 535447 , 539280 , 539293 , 547405 , 556519 , 571012 , 571235 , 585096 , 589979 , 597227 , 597260 , 600112 , 602199 , 603725 , 620783 , 622666 , 632695 , 634512 , 652519 , 652911 , 662137 , 684701 , 694715 , 701267 , 719347 , 722585 , 723003 , 723933 , 753155 , 757630 , 762986 , 765507 , 767417 , 772475 , 791851 , 800487 , 813075 );
Copy
10.30 ms (2.79%)
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
468363
478006
600112
441541
719347
800487
421618
547405
772475
652911
765507
767417
757630
723003
447321
684701
791851
722585
447311
435406
701267
762986
753155
652519
813075
556519
496454
465873
503947
602199
603725
455787
493236
459963
694715
534077
597260
723933
571235
425076
634512
487146
620783
539280
499734
535447
455687
539293
622666
589979
434369
457972
571012
513568
491194
597227
402724
497951
456523
585096
474003
662137
632695
]
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 (468363 , 478006 , 600112 , 441541 , 719347 , 800487 , 421618 , 547405 , 772475 , 652911 , 765507 , 767417 , 757630 , 723003 , 447321 , 684701 , 791851 , 722585 , 447311 , 435406 , 701267 , 762986 , 753155 , 652519 , 813075 , 556519 , 496454 , 465873 , 503947 , 602199 , 603725 , 455787 , 493236 , 459963 , 694715 , 534077 , 597260 , 723933 , 571235 , 425076 , 634512 , 487146 , 620783 , 539280 , 499734 , 535447 , 455687 , 539293 , 622666 , 589979 , 434369 , 457972 , 571012 , 513568 , 491194 , 597227 , 402724 , 497951 , 456523 , 585096 , 474003 , 662137 , 632695 );
Copy
2.51 ms (0.68%)
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
402724
421618
425076
434369
435406
441541
447311
447321
455687
455787
456523
457972
459963
465873
468363
474003
478006
487146
491194
493236
496454
497951
499734
503947
513568
534077
535447
539280
539293
547405
556519
571012
571235
585096
589979
597227
597260
600112
602199
603725
620783
622666
632695
634512
652519
652911
662137
684701
694715
701267
719347
722585
723003
723933
753155
757630
762986
765507
767417
772475
791851
800487
813075
]
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 (402724 , 421618 , 425076 , 434369 , 435406 , 441541 , 447311 , 447321 , 455687 , 455787 , 456523 , 457972 , 459963 , 465873 , 468363 , 474003 , 478006 , 487146 , 491194 , 493236 , 496454 , 497951 , 499734 , 503947 , 513568 , 534077 , 535447 , 539280 , 539293 , 547405 , 556519 , 571012 , 571235 , 585096 , 589979 , 597227 , 597260 , 600112 , 602199 , 603725 , 620783 , 622666 , 632695 , 634512 , 652519 , 652911 , 662137 , 684701 , 694715 , 701267 , 719347 , 722585 , 723003 , 723933 , 753155 , 757630 , 762986 , 765507 , 767417 , 772475 , 791851 , 800487 , 813075 );
Copy