89.08 ms (60.17%)
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
400019
417100
417512
419264
419277
421756
423732
444326
445228
445651
449326
452666
455819
468592
472090
478395
481757
484286
486602
488282
488529
491010
493402
494039
497679
499964
501543
502191
504411
504946
508076
514125
515010
515893
516486
516490
516493
522626
524381
526582
526635
527218
528156
528203
537337
547579
554442
558615
563464
564010
565863
571691
583444
591726
591795
594353
598592
599339
610958
616510
621171
624953
627089
629580
641418
666935
727082
745962
756733
785909
]
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 (400019 , 417100 , 417512 , 419264 , 419277 , 421756 , 423732 , 444326 , 445228 , 445651 , 449326 , 452666 , 455819 , 468592 , 472090 , 478395 , 481757 , 484286 , 486602 , 488282 , 488529 , 491010 , 493402 , 494039 , 497679 , 499964 , 501543 , 502191 , 504411 , 504946 , 508076 , 514125 , 515010 , 515893 , 516486 , 516490 , 516493 , 522626 , 524381 , 526582 , 526635 , 527218 , 528156 , 528203 , 537337 , 547579 , 554442 , 558615 , 563464 , 564010 , 565863 , 571691 , 583444 , 591726 , 591795 , 594353 , 598592 , 599339 , 610958 , 616510 , 621171 , 624953 , 627089 , 629580 , 641418 , 666935 , 727082 , 745962 , 756733 , 785909 );
Copy
16.47 ms (11.12%)
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
419264
472090
400019
419277
481757
486602
504946
528156
524381
449326
484286
727082
508076
516493
417100
444326
445651
491010
565863
547579
666935
558615
591726
616510
785909
756733
745962
629580
452666
455819
417512
478395
499964
488529
501543
515010
516490
515893
641418
494039
493402
423732
497679
537337
583444
554442
564010
563464
591795
599339
526582
526635
488282
445228
621171
624953
610958
522626
528203
502191
516486
571691
514125
598592
627089
468592
594353
527218
421756
504411
]
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 (419264 , 472090 , 400019 , 419277 , 481757 , 486602 , 504946 , 528156 , 524381 , 449326 , 484286 , 727082 , 508076 , 516493 , 417100 , 444326 , 445651 , 491010 , 565863 , 547579 , 666935 , 558615 , 591726 , 616510 , 785909 , 756733 , 745962 , 629580 , 452666 , 455819 , 417512 , 478395 , 499964 , 488529 , 501543 , 515010 , 516490 , 515893 , 641418 , 494039 , 493402 , 423732 , 497679 , 537337 , 583444 , 554442 , 564010 , 563464 , 591795 , 599339 , 526582 , 526635 , 488282 , 445228 , 621171 , 624953 , 610958 , 522626 , 528203 , 502191 , 516486 , 571691 , 514125 , 598592 , 627089 , 468592 , 594353 , 527218 , 421756 , 504411 );
Copy
2.28 ms (1.54%)
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
400019
417100
417512
419264
419277
421756
423732
444326
445228
445651
449326
452666
455819
468592
472090
478395
481757
484286
486602
488282
488529
491010
493402
494039
497679
499964
501543
502191
504411
504946
508076
514125
515010
515893
516486
516490
516493
522626
524381
526582
526635
527218
528156
528203
537337
547579
554442
558615
563464
564010
565863
571691
583444
591726
591795
594353
598592
599339
610958
616510
621171
624953
627089
629580
641418
666935
727082
745962
756733
785909
]
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 (400019 , 417100 , 417512 , 419264 , 419277 , 421756 , 423732 , 444326 , 445228 , 445651 , 449326 , 452666 , 455819 , 468592 , 472090 , 478395 , 481757 , 484286 , 486602 , 488282 , 488529 , 491010 , 493402 , 494039 , 497679 , 499964 , 501543 , 502191 , 504411 , 504946 , 508076 , 514125 , 515010 , 515893 , 516486 , 516490 , 516493 , 522626 , 524381 , 526582 , 526635 , 527218 , 528156 , 528203 , 537337 , 547579 , 554442 , 558615 , 563464 , 564010 , 565863 , 571691 , 583444 , 591726 , 591795 , 594353 , 598592 , 599339 , 610958 , 616510 , 621171 , 624953 , 627089 , 629580 , 641418 , 666935 , 727082 , 745962 , 756733 , 785909 );
Copy