3
12.64 ms
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
675412
827735
630694
767441
627376
546046
556250
726913
739841
776053
728101
768655
627789
567816
602527
470882
498855
601695
574768
479649
523065
739849
602658
815127
826034
824628
723024
774194
813665
793243
786902
559752
786002
703110
812556
712608
642963
604644
811372
774574
413702
791455
790076
808319
641498
568547
765114
760686
692777
757402
181242
626482
509225
631481
587081
515627
569246
813178
782538
506057
487008
475296
527476
617636
603384
526963
607462
463828
606036
575198
649163
603298
]
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 (675412 , 827735 , 630694 , 767441 , 627376 , 546046 , 556250 , 726913 , 739841 , 776053 , 728101 , 768655 , 627789 , 567816 , 602527 , 470882 , 498855 , 601695 , 574768 , 479649 , 523065 , 739849 , 602658 , 815127 , 826034 , 824628 , 723024 , 774194 , 813665 , 793243 , 786902 , 559752 , 786002 , 703110 , 812556 , 712608 , 642963 , 604644 , 811372 , 774574 , 413702 , 791455 , 790076 , 808319 , 641498 , 568547 , 765114 , 760686 , 692777 , 757402 , 181242 , 626482 , 509225 , 631481 , 587081 , 515627 , 569246 , 813178 , 782538 , 506057 , 487008 , 475296 , 527476 , 617636 , 603384 , 526963 , 607462 , 463828 , 606036 , 575198 , 649163 , 603298 );
Copy
4
3.08 ms
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
181242
413702
463828
470882
475296
479649
487008
498855
506057
509225
515627
523065
526963
527476
546046
556250
559752
567816
568547
569246
574768
575198
587081
601695
602527
602658
603298
603384
604644
606036
607462
617636
626482
627376
627789
630694
631481
641498
642963
649163
675412
692777
703110
712608
723024
726913
728101
739841
739849
757402
760686
765114
767441
768655
774194
774574
776053
782538
786002
786902
790076
791455
793243
808319
811372
812556
813178
813665
815127
824628
826034
827735
]
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 (181242 , 413702 , 463828 , 470882 , 475296 , 479649 , 487008 , 498855 , 506057 , 509225 , 515627 , 523065 , 526963 , 527476 , 546046 , 556250 , 559752 , 567816 , 568547 , 569246 , 574768 , 575198 , 587081 , 601695 , 602527 , 602658 , 603298 , 603384 , 604644 , 606036 , 607462 , 617636 , 626482 , 627376 , 627789 , 630694 , 631481 , 641498 , 642963 , 649163 , 675412 , 692777 , 703110 , 712608 , 723024 , 726913 , 728101 , 739841 , 739849 , 757402 , 760686 , 765114 , 767441 , 768655 , 774194 , 774574 , 776053 , 782538 , 786002 , 786902 , 790076 , 791455 , 793243 , 808319 , 811372 , 812556 , 813178 , 813665 , 815127 , 824628 , 826034 , 827735 );
Copy
5
84.60 ms
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
181242
413702
463828
470882
475296
479649
487008
498855
506057
509225
515627
523065
526963
527476
546046
556250
559752
567816
568547
569246
574768
575198
587081
601695
602527
602658
603298
603384
604644
606036
607462
617636
626482
627376
627789
630694
631481
641498
642963
649163
675412
692777
703110
712608
723024
726913
728101
739841
739849
757402
760686
765114
767441
768655
774194
774574
776053
782538
786002
786902
790076
791455
793243
808319
811372
812556
813178
813665
815127
824628
826034
827735
]
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 (181242 , 413702 , 463828 , 470882 , 475296 , 479649 , 487008 , 498855 , 506057 , 509225 , 515627 , 523065 , 526963 , 527476 , 546046 , 556250 , 559752 , 567816 , 568547 , 569246 , 574768 , 575198 , 587081 , 601695 , 602527 , 602658 , 603298 , 603384 , 604644 , 606036 , 607462 , 617636 , 626482 , 627376 , 627789 , 630694 , 631481 , 641498 , 642963 , 649163 , 675412 , 692777 , 703110 , 712608 , 723024 , 726913 , 728101 , 739841 , 739849 , 757402 , 760686 , 765114 , 767441 , 768655 , 774194 , 774574 , 776053 , 782538 , 786002 , 786902 , 790076 , 791455 , 793243 , 808319 , 811372 , 812556 , 813178 , 813665 , 815127 , 824628 , 826034 , 827735 );
Copy