69.99 ms (21.91%)
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
398182
458429
473218
521569
522380
522381
541417
541769
542319
542837
543048
543107
543141
543191
543195
543460
543503
543515
543518
543865
544672
545783
546063
546824
547087
550251
550347
550511
556938
556945
556951
556958
556970
562332
562335
562336
562337
562340
564888
565929
567826
568050
568053
570176
571798
575007
575011
575706
575709
578587
582227
585999
586504
586518
588592
591632
593413
593886
595775
601101
602948
611028
614995
617118
647642
650823
]
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 (398182 , 458429 , 473218 , 521569 , 522380 , 522381 , 541417 , 541769 , 542319 , 542837 , 543048 , 543107 , 543141 , 543191 , 543195 , 543460 , 543503 , 543515 , 543518 , 543865 , 544672 , 545783 , 546063 , 546824 , 547087 , 550251 , 550347 , 550511 , 556938 , 556945 , 556951 , 556958 , 556970 , 562332 , 562335 , 562336 , 562337 , 562340 , 564888 , 565929 , 567826 , 568050 , 568053 , 570176 , 571798 , 575007 , 575011 , 575706 , 575709 , 578587 , 582227 , 585999 , 586504 , 586518 , 588592 , 591632 , 593413 , 593886 , 595775 , 601101 , 602948 , 611028 , 614995 , 617118 , 647642 , 650823 );
Copy
11.47 ms (3.59%)
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
543460
562337
571798
575706
550251
575709
541417
542837
545783
543141
546824
556938
562335
565929
543191
568050
550347
556945
575011
588592
521569
473218
543865
602948
591632
543195
595775
543107
546063
593886
585999
593413
398182
458429
522380
543048
564888
543503
570176
544672
547087
556951
556970
650823
562332
617118
586518
522381
568053
542319
578587
586504
550511
543515
556958
562340
543518
567826
575007
614995
582227
647642
541769
562336
611028
601101
]
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 (543460 , 562337 , 571798 , 575706 , 550251 , 575709 , 541417 , 542837 , 545783 , 543141 , 546824 , 556938 , 562335 , 565929 , 543191 , 568050 , 550347 , 556945 , 575011 , 588592 , 521569 , 473218 , 543865 , 602948 , 591632 , 543195 , 595775 , 543107 , 546063 , 593886 , 585999 , 593413 , 398182 , 458429 , 522380 , 543048 , 564888 , 543503 , 570176 , 544672 , 547087 , 556951 , 556970 , 650823 , 562332 , 617118 , 586518 , 522381 , 568053 , 542319 , 578587 , 586504 , 550511 , 543515 , 556958 , 562340 , 543518 , 567826 , 575007 , 614995 , 582227 , 647642 , 541769 , 562336 , 611028 , 601101 );
Copy
2.51 ms (0.79%)
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
398182
458429
473218
521569
522380
522381
541417
541769
542319
542837
543048
543107
543141
543191
543195
543460
543503
543515
543518
543865
544672
545783
546063
546824
547087
550251
550347
550511
556938
556945
556951
556958
556970
562332
562335
562336
562337
562340
564888
565929
567826
568050
568053
570176
571798
575007
575011
575706
575709
578587
582227
585999
586504
586518
588592
591632
593413
593886
595775
601101
602948
611028
614995
617118
647642
650823
]
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 (398182 , 458429 , 473218 , 521569 , 522380 , 522381 , 541417 , 541769 , 542319 , 542837 , 543048 , 543107 , 543141 , 543191 , 543195 , 543460 , 543503 , 543515 , 543518 , 543865 , 544672 , 545783 , 546063 , 546824 , 547087 , 550251 , 550347 , 550511 , 556938 , 556945 , 556951 , 556958 , 556970 , 562332 , 562335 , 562336 , 562337 , 562340 , 564888 , 565929 , 567826 , 568050 , 568053 , 570176 , 571798 , 575007 , 575011 , 575706 , 575709 , 578587 , 582227 , 585999 , 586504 , 586518 , 588592 , 591632 , 593413 , 593886 , 595775 , 601101 , 602948 , 611028 , 614995 , 617118 , 647642 , 650823 );
Copy