3
7.05 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
787743
551665
714569
598294
586332
644904
579739
634917
596931
532206
582941
547884
589657
607010
525939
565032
497809
550495
566335
589837
600197
622127
505433
494931
507108
622767
479463
525071
530545
527061
561438
567646
668622
559723
592089
592106
619919
600704
635007
642177
627578
480718
500479
495868
499579
515343
564206
568983
647951
590984
634386
592093
602510
635687
610166
514643
537382
561603
584333
579746
597887
634222
610703
463016
602404
630919
546029
]
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 (787743 , 551665 , 714569 , 598294 , 586332 , 644904 , 579739 , 634917 , 596931 , 532206 , 582941 , 547884 , 589657 , 607010 , 525939 , 565032 , 497809 , 550495 , 566335 , 589837 , 600197 , 622127 , 505433 , 494931 , 507108 , 622767 , 479463 , 525071 , 530545 , 527061 , 561438 , 567646 , 668622 , 559723 , 592089 , 592106 , 619919 , 600704 , 635007 , 642177 , 627578 , 480718 , 500479 , 495868 , 499579 , 515343 , 564206 , 568983 , 647951 , 590984 , 634386 , 592093 , 602510 , 635687 , 610166 , 514643 , 537382 , 561603 , 584333 , 579746 , 597887 , 634222 , 610703 , 463016 , 602404 , 630919 , 546029 );
Copy
4
3.00 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
463016
479463
480718
494931
495868
497809
499579
500479
505433
507108
514643
515343
525071
525939
527061
530545
532206
537382
546029
547884
550495
551665
559723
561438
561603
564206
565032
566335
567646
568983
579739
579746
582941
584333
586332
589657
589837
590984
592089
592093
592106
596931
597887
598294
600197
600704
602404
602510
607010
610166
610703
619919
622127
622767
627578
630919
634222
634386
634917
635007
635687
642177
644904
647951
668622
714569
787743
]
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 (463016 , 479463 , 480718 , 494931 , 495868 , 497809 , 499579 , 500479 , 505433 , 507108 , 514643 , 515343 , 525071 , 525939 , 527061 , 530545 , 532206 , 537382 , 546029 , 547884 , 550495 , 551665 , 559723 , 561438 , 561603 , 564206 , 565032 , 566335 , 567646 , 568983 , 579739 , 579746 , 582941 , 584333 , 586332 , 589657 , 589837 , 590984 , 592089 , 592093 , 592106 , 596931 , 597887 , 598294 , 600197 , 600704 , 602404 , 602510 , 607010 , 610166 , 610703 , 619919 , 622127 , 622767 , 627578 , 630919 , 634222 , 634386 , 634917 , 635007 , 635687 , 642177 , 644904 , 647951 , 668622 , 714569 , 787743 );
Copy
5
85.17 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
463016
479463
480718
494931
495868
497809
499579
500479
505433
507108
514643
515343
525071
525939
527061
530545
532206
537382
546029
547884
550495
551665
559723
561438
561603
564206
565032
566335
567646
568983
579739
579746
582941
584333
586332
589657
589837
590984
592089
592093
592106
596931
597887
598294
600197
600704
602404
602510
607010
610166
610703
619919
622127
622767
627578
630919
634222
634386
634917
635007
635687
642177
644904
647951
668622
714569
787743
]
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 (463016 , 479463 , 480718 , 494931 , 495868 , 497809 , 499579 , 500479 , 505433 , 507108 , 514643 , 515343 , 525071 , 525939 , 527061 , 530545 , 532206 , 537382 , 546029 , 547884 , 550495 , 551665 , 559723 , 561438 , 561603 , 564206 , 565032 , 566335 , 567646 , 568983 , 579739 , 579746 , 582941 , 584333 , 586332 , 589657 , 589837 , 590984 , 592089 , 592093 , 592106 , 596931 , 597887 , 598294 , 600197 , 600704 , 602404 , 602510 , 607010 , 610166 , 610703 , 619919 , 622127 , 622767 , 627578 , 630919 , 634222 , 634386 , 634917 , 635007 , 635687 , 642177 , 644904 , 647951 , 668622 , 714569 , 787743 );
Copy