78.86 ms (64.76%)
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
407442
427907
443626
444913
444918
454428
455065
460097
464031
476015
493471
510425
517452
520227
521875
526682
526967
528036
529294
535350
562962
567063
571102
595894
599354
603672
626037
631615
632989
637490
640350
644128
658453
658469
663438
664579
707518
713449
714925
715114
715480
724495
726788
730090
734215
742636
750907
761039
769533
769535
781772
782007
782395
782404
795815
806203
806244
813805
819353
826397
826490
827290
]
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 (407442 , 427907 , 443626 , 444913 , 444918 , 454428 , 455065 , 460097 , 464031 , 476015 , 493471 , 510425 , 517452 , 520227 , 521875 , 526682 , 526967 , 528036 , 529294 , 535350 , 562962 , 567063 , 571102 , 595894 , 599354 , 603672 , 626037 , 631615 , 632989 , 637490 , 640350 , 644128 , 658453 , 658469 , 663438 , 664579 , 707518 , 713449 , 714925 , 715114 , 715480 , 724495 , 726788 , 730090 , 734215 , 742636 , 750907 , 761039 , 769533 , 769535 , 781772 , 782007 , 782395 , 782404 , 795815 , 806203 , 806244 , 813805 , 819353 , 826397 , 826490 , 827290 );
Copy
9.03 ms (7.42%)
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
769535
769533
455065
520227
795815
730090
734215
806203
806244
713449
644128
726788
826397
724495
632989
715480
782404
826490
782007
715114
782395
535350
626037
637490
595894
813805
742636
664579
819353
663438
443626
827290
526682
528036
658453
658469
707518
781772
427907
631615
407442
460097
517452
714925
464031
529294
493471
640350
454428
521875
526967
562962
567063
599354
750907
444913
444918
510425
476015
571102
761039
603672
]
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 (769535 , 769533 , 455065 , 520227 , 795815 , 730090 , 734215 , 806203 , 806244 , 713449 , 644128 , 726788 , 826397 , 724495 , 632989 , 715480 , 782404 , 826490 , 782007 , 715114 , 782395 , 535350 , 626037 , 637490 , 595894 , 813805 , 742636 , 664579 , 819353 , 663438 , 443626 , 827290 , 526682 , 528036 , 658453 , 658469 , 707518 , 781772 , 427907 , 631615 , 407442 , 460097 , 517452 , 714925 , 464031 , 529294 , 493471 , 640350 , 454428 , 521875 , 526967 , 562962 , 567063 , 599354 , 750907 , 444913 , 444918 , 510425 , 476015 , 571102 , 761039 , 603672 );
Copy
2.90 ms (2.38%)
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
407442
427907
443626
444913
444918
454428
455065
460097
464031
476015
493471
510425
517452
520227
521875
526682
526967
528036
529294
535350
562962
567063
571102
595894
599354
603672
626037
631615
632989
637490
640350
644128
658453
658469
663438
664579
707518
713449
714925
715114
715480
724495
726788
730090
734215
742636
750907
761039
769533
769535
781772
782007
782395
782404
795815
806203
806244
813805
819353
826397
826490
827290
]
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 (407442 , 427907 , 443626 , 444913 , 444918 , 454428 , 455065 , 460097 , 464031 , 476015 , 493471 , 510425 , 517452 , 520227 , 521875 , 526682 , 526967 , 528036 , 529294 , 535350 , 562962 , 567063 , 571102 , 595894 , 599354 , 603672 , 626037 , 631615 , 632989 , 637490 , 640350 , 644128 , 658453 , 658469 , 663438 , 664579 , 707518 , 713449 , 714925 , 715114 , 715480 , 724495 , 726788 , 730090 , 734215 , 742636 , 750907 , 761039 , 769533 , 769535 , 781772 , 782007 , 782395 , 782404 , 795815 , 806203 , 806244 , 813805 , 819353 , 826397 , 826490 , 827290 );
Copy