3
9.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
725308
738880
772900
773188
438314
793348
799515
798245
34409
823612
523986
605336
808055
802692
809778
789198
12248
802508
649536
561536
731091
763273
633148
491800
797593
470812
384461
12710
484304
540161
752869
499041
583502
632060
808730
733246
757840
775828
467567
407529
516475
541928
558288
586527
619189
466605
467536
453562
515900
519064
472501
526201
503418
556882
805383
724247
597997
447124
398559
405061
502795
618906
467220
593198
609275
424837
]
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 (725308 , 738880 , 772900 , 773188 , 438314 , 793348 , 799515 , 798245 , 34409 , 823612 , 523986 , 605336 , 808055 , 802692 , 809778 , 789198 , 12248 , 802508 , 649536 , 561536 , 731091 , 763273 , 633148 , 491800 , 797593 , 470812 , 384461 , 12710 , 484304 , 540161 , 752869 , 499041 , 583502 , 632060 , 808730 , 733246 , 757840 , 775828 , 467567 , 407529 , 516475 , 541928 , 558288 , 586527 , 619189 , 466605 , 467536 , 453562 , 515900 , 519064 , 472501 , 526201 , 503418 , 556882 , 805383 , 724247 , 597997 , 447124 , 398559 , 405061 , 502795 , 618906 , 467220 , 593198 , 609275 , 424837 );
Copy
4
2.57 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
12248
12710
34409
384461
398559
405061
407529
424837
438314
447124
453562
466605
467220
467536
467567
470812
472501
484304
491800
499041
502795
503418
515900
516475
519064
523986
526201
540161
541928
556882
558288
561536
583502
586527
593198
597997
605336
609275
618906
619189
632060
633148
649536
724247
725308
731091
733246
738880
752869
757840
763273
772900
773188
775828
789198
793348
797593
798245
799515
802508
802692
805383
808055
808730
809778
823612
]
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 (12248 , 12710 , 34409 , 384461 , 398559 , 405061 , 407529 , 424837 , 438314 , 447124 , 453562 , 466605 , 467220 , 467536 , 467567 , 470812 , 472501 , 484304 , 491800 , 499041 , 502795 , 503418 , 515900 , 516475 , 519064 , 523986 , 526201 , 540161 , 541928 , 556882 , 558288 , 561536 , 583502 , 586527 , 593198 , 597997 , 605336 , 609275 , 618906 , 619189 , 632060 , 633148 , 649536 , 724247 , 725308 , 731091 , 733246 , 738880 , 752869 , 757840 , 763273 , 772900 , 773188 , 775828 , 789198 , 793348 , 797593 , 798245 , 799515 , 802508 , 802692 , 805383 , 808055 , 808730 , 809778 , 823612 );
Copy
5
76.25 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
12248
12710
34409
384461
398559
405061
407529
424837
438314
447124
453562
466605
467220
467536
467567
470812
472501
484304
491800
499041
502795
503418
515900
516475
519064
523986
526201
540161
541928
556882
558288
561536
583502
586527
593198
597997
605336
609275
618906
619189
632060
633148
649536
724247
725308
731091
733246
738880
752869
757840
763273
772900
773188
775828
789198
793348
797593
798245
799515
802508
802692
805383
808055
808730
809778
823612
]
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 (12248 , 12710 , 34409 , 384461 , 398559 , 405061 , 407529 , 424837 , 438314 , 447124 , 453562 , 466605 , 467220 , 467536 , 467567 , 470812 , 472501 , 484304 , 491800 , 499041 , 502795 , 503418 , 515900 , 516475 , 519064 , 523986 , 526201 , 540161 , 541928 , 556882 , 558288 , 561536 , 583502 , 586527 , 593198 , 597997 , 605336 , 609275 , 618906 , 619189 , 632060 , 633148 , 649536 , 724247 , 725308 , 731091 , 733246 , 738880 , 752869 , 757840 , 763273 , 772900 , 773188 , 775828 , 789198 , 793348 , 797593 , 798245 , 799515 , 802508 , 802692 , 805383 , 808055 , 808730 , 809778 , 823612 );
Copy