3
18.48 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
571433
564855
543596
759693
627117
590493
613171
554579
782775
616779
510099
613880
565682
460697
527395
484718
556405
485398
503388
488739
562399
604058
440726
461061
557119
558200
583553
621407
616873
524281
609100
617167
625322
625861
474744
571806
584637
606929
525272
492169
596526
624930
611989
598158
602766
591438
465712
559155
623235
636181
490061
621272
621340
602880
590866
532644
520737
541632
610046
616996
621330
579367
408609
517345
519933
438896
]
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 (571433 , 564855 , 543596 , 759693 , 627117 , 590493 , 613171 , 554579 , 782775 , 616779 , 510099 , 613880 , 565682 , 460697 , 527395 , 484718 , 556405 , 485398 , 503388 , 488739 , 562399 , 604058 , 440726 , 461061 , 557119 , 558200 , 583553 , 621407 , 616873 , 524281 , 609100 , 617167 , 625322 , 625861 , 474744 , 571806 , 584637 , 606929 , 525272 , 492169 , 596526 , 624930 , 611989 , 598158 , 602766 , 591438 , 465712 , 559155 , 623235 , 636181 , 490061 , 621272 , 621340 , 602880 , 590866 , 532644 , 520737 , 541632 , 610046 , 616996 , 621330 , 579367 , 408609 , 517345 , 519933 , 438896 );
Copy
4
2.88 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
408609
438896
440726
460697
461061
465712
474744
484718
485398
488739
490061
492169
503388
510099
517345
519933
520737
524281
525272
527395
532644
541632
543596
554579
556405
557119
558200
559155
562399
564855
565682
571433
571806
579367
583553
584637
590493
590866
591438
596526
598158
602766
602880
604058
606929
609100
610046
611989
613171
613880
616779
616873
616996
617167
621272
621330
621340
621407
623235
624930
625322
625861
627117
636181
759693
782775
]
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 (408609 , 438896 , 440726 , 460697 , 461061 , 465712 , 474744 , 484718 , 485398 , 488739 , 490061 , 492169 , 503388 , 510099 , 517345 , 519933 , 520737 , 524281 , 525272 , 527395 , 532644 , 541632 , 543596 , 554579 , 556405 , 557119 , 558200 , 559155 , 562399 , 564855 , 565682 , 571433 , 571806 , 579367 , 583553 , 584637 , 590493 , 590866 , 591438 , 596526 , 598158 , 602766 , 602880 , 604058 , 606929 , 609100 , 610046 , 611989 , 613171 , 613880 , 616779 , 616873 , 616996 , 617167 , 621272 , 621330 , 621340 , 621407 , 623235 , 624930 , 625322 , 625861 , 627117 , 636181 , 759693 , 782775 );
Copy
5
139.41 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
408609
438896
440726
460697
461061
465712
474744
484718
485398
488739
490061
492169
503388
510099
517345
519933
520737
524281
525272
527395
532644
541632
543596
554579
556405
557119
558200
559155
562399
564855
565682
571433
571806
579367
583553
584637
590493
590866
591438
596526
598158
602766
602880
604058
606929
609100
610046
611989
613171
613880
616779
616873
616996
617167
621272
621330
621340
621407
623235
624930
625322
625861
627117
636181
759693
782775
]
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 (408609 , 438896 , 440726 , 460697 , 461061 , 465712 , 474744 , 484718 , 485398 , 488739 , 490061 , 492169 , 503388 , 510099 , 517345 , 519933 , 520737 , 524281 , 525272 , 527395 , 532644 , 541632 , 543596 , 554579 , 556405 , 557119 , 558200 , 559155 , 562399 , 564855 , 565682 , 571433 , 571806 , 579367 , 583553 , 584637 , 590493 , 590866 , 591438 , 596526 , 598158 , 602766 , 602880 , 604058 , 606929 , 609100 , 610046 , 611989 , 613171 , 613880 , 616779 , 616873 , 616996 , 617167 , 621272 , 621330 , 621340 , 621407 , 623235 , 624930 , 625322 , 625861 , 627117 , 636181 , 759693 , 782775 );
Copy