3
10.03 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
812091
737709
572649
387860
516206
403988
496721
640732
543922
649079
671408
720351
585913
827896
533933
714879
446351
446350
662043
595921
530494
494618
580260
646733
716112
591032
537670
824258
522701
474772
636053
456109
525777
473094
497679
600962
813082
404368
536546
504955
542965
623204
788260
416351
451620
532737
536586
536616
542975
447452
468012
532343
526540
464168
641090
604523
510463
647333
545393
536538
648560
634187
]
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 (812091 , 737709 , 572649 , 387860 , 516206 , 403988 , 496721 , 640732 , 543922 , 649079 , 671408 , 720351 , 585913 , 827896 , 533933 , 714879 , 446351 , 446350 , 662043 , 595921 , 530494 , 494618 , 580260 , 646733 , 716112 , 591032 , 537670 , 824258 , 522701 , 474772 , 636053 , 456109 , 525777 , 473094 , 497679 , 600962 , 813082 , 404368 , 536546 , 504955 , 542965 , 623204 , 788260 , 416351 , 451620 , 532737 , 536586 , 536616 , 542975 , 447452 , 468012 , 532343 , 526540 , 464168 , 641090 , 604523 , 510463 , 647333 , 545393 , 536538 , 648560 , 634187 );
Copy
4
2.09 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
387860
403988
404368
416351
446350
446351
447452
451620
456109
464168
468012
473094
474772
494618
496721
497679
504955
510463
516206
522701
525777
526540
530494
532343
532737
533933
536538
536546
536586
536616
537670
542965
542975
543922
545393
572649
580260
585913
591032
595921
600962
604523
623204
634187
636053
640732
641090
646733
647333
648560
649079
662043
671408
714879
716112
720351
737709
788260
812091
813082
824258
827896
]
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 (387860 , 403988 , 404368 , 416351 , 446350 , 446351 , 447452 , 451620 , 456109 , 464168 , 468012 , 473094 , 474772 , 494618 , 496721 , 497679 , 504955 , 510463 , 516206 , 522701 , 525777 , 526540 , 530494 , 532343 , 532737 , 533933 , 536538 , 536546 , 536586 , 536616 , 537670 , 542965 , 542975 , 543922 , 545393 , 572649 , 580260 , 585913 , 591032 , 595921 , 600962 , 604523 , 623204 , 634187 , 636053 , 640732 , 641090 , 646733 , 647333 , 648560 , 649079 , 662043 , 671408 , 714879 , 716112 , 720351 , 737709 , 788260 , 812091 , 813082 , 824258 , 827896 );
Copy
5
85.23 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
387860
403988
404368
416351
446350
446351
447452
451620
456109
464168
468012
473094
474772
494618
496721
497679
504955
510463
516206
522701
525777
526540
530494
532343
532737
533933
536538
536546
536586
536616
537670
542965
542975
543922
545393
572649
580260
585913
591032
595921
600962
604523
623204
634187
636053
640732
641090
646733
647333
648560
649079
662043
671408
714879
716112
720351
737709
788260
812091
813082
824258
827896
]
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 (387860 , 403988 , 404368 , 416351 , 446350 , 446351 , 447452 , 451620 , 456109 , 464168 , 468012 , 473094 , 474772 , 494618 , 496721 , 497679 , 504955 , 510463 , 516206 , 522701 , 525777 , 526540 , 530494 , 532343 , 532737 , 533933 , 536538 , 536546 , 536586 , 536616 , 537670 , 542965 , 542975 , 543922 , 545393 , 572649 , 580260 , 585913 , 591032 , 595921 , 600962 , 604523 , 623204 , 634187 , 636053 , 640732 , 641090 , 646733 , 647333 , 648560 , 649079 , 662043 , 671408 , 714879 , 716112 , 720351 , 737709 , 788260 , 812091 , 813082 , 824258 , 827896 );
Copy