75.59 ms (65.79%)
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
437592
443649
445387
449186
460261
473449
476844
481707
515061
517594
517800
533693
536050
536990
549730
553689
561876
566419
569961
575625
578011
579379
590653
603660
609271
613823
628600
634298
637299
645798
650863
650992
653069
654303
654627
656233
657247
666405
677878
678644
691633
698089
709547
726037
731276
731339
733573
736674
737130
737182
744955
749394
760634
766300
768790
773174
785663
793603
795075
800937
803463
803696
825809
826406
827269
]
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 (437592 , 443649 , 445387 , 449186 , 460261 , 473449 , 476844 , 481707 , 515061 , 517594 , 517800 , 533693 , 536050 , 536990 , 549730 , 553689 , 561876 , 566419 , 569961 , 575625 , 578011 , 579379 , 590653 , 603660 , 609271 , 613823 , 628600 , 634298 , 637299 , 645798 , 650863 , 650992 , 653069 , 654303 , 654627 , 656233 , 657247 , 666405 , 677878 , 678644 , 691633 , 698089 , 709547 , 726037 , 731276 , 731339 , 733573 , 736674 , 737130 , 737182 , 744955 , 749394 , 760634 , 766300 , 768790 , 773174 , 785663 , 793603 , 795075 , 800937 , 803463 , 803696 , 825809 , 826406 , 827269 );
Copy
9.62 ms (8.37%)
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
731339
476844
744955
826406
691633
533693
657247
760634
803696
749394
825809
654627
536050
637299
645798
654303
566419
575625
653069
628600
590653
773174
793603
736674
785663
766300
827269
737182
731276
634298
553689
536990
795075
768790
677878
561876
698089
737130
473449
460261
656233
481707
726037
650992
678644
803463
449186
709547
437592
517594
800937
445387
579379
578011
517800
733573
603660
569961
613823
650863
609271
549730
443649
515061
666405
]
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 (731339 , 476844 , 744955 , 826406 , 691633 , 533693 , 657247 , 760634 , 803696 , 749394 , 825809 , 654627 , 536050 , 637299 , 645798 , 654303 , 566419 , 575625 , 653069 , 628600 , 590653 , 773174 , 793603 , 736674 , 785663 , 766300 , 827269 , 737182 , 731276 , 634298 , 553689 , 536990 , 795075 , 768790 , 677878 , 561876 , 698089 , 737130 , 473449 , 460261 , 656233 , 481707 , 726037 , 650992 , 678644 , 803463 , 449186 , 709547 , 437592 , 517594 , 800937 , 445387 , 579379 , 578011 , 517800 , 733573 , 603660 , 569961 , 613823 , 650863 , 609271 , 549730 , 443649 , 515061 , 666405 );
Copy
2.84 ms (2.48%)
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
437592
443649
445387
449186
460261
473449
476844
481707
515061
517594
517800
533693
536050
536990
549730
553689
561876
566419
569961
575625
578011
579379
590653
603660
609271
613823
628600
634298
637299
645798
650863
650992
653069
654303
654627
656233
657247
666405
677878
678644
691633
698089
709547
726037
731276
731339
733573
736674
737130
737182
744955
749394
760634
766300
768790
773174
785663
793603
795075
800937
803463
803696
825809
826406
827269
]
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 (437592 , 443649 , 445387 , 449186 , 460261 , 473449 , 476844 , 481707 , 515061 , 517594 , 517800 , 533693 , 536050 , 536990 , 549730 , 553689 , 561876 , 566419 , 569961 , 575625 , 578011 , 579379 , 590653 , 603660 , 609271 , 613823 , 628600 , 634298 , 637299 , 645798 , 650863 , 650992 , 653069 , 654303 , 654627 , 656233 , 657247 , 666405 , 677878 , 678644 , 691633 , 698089 , 709547 , 726037 , 731276 , 731339 , 733573 , 736674 , 737130 , 737182 , 744955 , 749394 , 760634 , 766300 , 768790 , 773174 , 785663 , 793603 , 795075 , 800937 , 803463 , 803696 , 825809 , 826406 , 827269 );
Copy