3
15.72 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
576949
826346
818546
536200
532568
532866
711948
547447
629347
804415
818573
532557
532573
720259
616387
710480
575253
782043
818561
475887
692723
707416
710671
552644
591835
449076
465724
650519
656523
769963
491618
579826
660762
590757
788856
818532
446610
528501
594340
598287
515002
426294
512964
586583
799767
419819
511375
592580
575708
575601
655927
467886
500289
391943
419871
466814
476225
532783
467108
604426
710435
604939
641126
640751
478651
]
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 (576949 , 826346 , 818546 , 536200 , 532568 , 532866 , 711948 , 547447 , 629347 , 804415 , 818573 , 532557 , 532573 , 720259 , 616387 , 710480 , 575253 , 782043 , 818561 , 475887 , 692723 , 707416 , 710671 , 552644 , 591835 , 449076 , 465724 , 650519 , 656523 , 769963 , 491618 , 579826 , 660762 , 590757 , 788856 , 818532 , 446610 , 528501 , 594340 , 598287 , 515002 , 426294 , 512964 , 586583 , 799767 , 419819 , 511375 , 592580 , 575708 , 575601 , 655927 , 467886 , 500289 , 391943 , 419871 , 466814 , 476225 , 532783 , 467108 , 604426 , 710435 , 604939 , 641126 , 640751 , 478651 );
Copy
4
2.59 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
391943
419819
419871
426294
446610
449076
465724
466814
467108
467886
475887
476225
478651
491618
500289
511375
512964
515002
528501
532557
532568
532573
532783
532866
536200
547447
552644
575253
575601
575708
576949
579826
586583
590757
591835
592580
594340
598287
604426
604939
616387
629347
640751
641126
650519
655927
656523
660762
692723
707416
710435
710480
710671
711948
720259
769963
782043
788856
799767
804415
818532
818546
818561
818573
826346
]
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 (391943 , 419819 , 419871 , 426294 , 446610 , 449076 , 465724 , 466814 , 467108 , 467886 , 475887 , 476225 , 478651 , 491618 , 500289 , 511375 , 512964 , 515002 , 528501 , 532557 , 532568 , 532573 , 532783 , 532866 , 536200 , 547447 , 552644 , 575253 , 575601 , 575708 , 576949 , 579826 , 586583 , 590757 , 591835 , 592580 , 594340 , 598287 , 604426 , 604939 , 616387 , 629347 , 640751 , 641126 , 650519 , 655927 , 656523 , 660762 , 692723 , 707416 , 710435 , 710480 , 710671 , 711948 , 720259 , 769963 , 782043 , 788856 , 799767 , 804415 , 818532 , 818546 , 818561 , 818573 , 826346 );
Copy
5
75.37 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
391943
419819
419871
426294
446610
449076
465724
466814
467108
467886
475887
476225
478651
491618
500289
511375
512964
515002
528501
532557
532568
532573
532783
532866
536200
547447
552644
575253
575601
575708
576949
579826
586583
590757
591835
592580
594340
598287
604426
604939
616387
629347
640751
641126
650519
655927
656523
660762
692723
707416
710435
710480
710671
711948
720259
769963
782043
788856
799767
804415
818532
818546
818561
818573
826346
]
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 (391943 , 419819 , 419871 , 426294 , 446610 , 449076 , 465724 , 466814 , 467108 , 467886 , 475887 , 476225 , 478651 , 491618 , 500289 , 511375 , 512964 , 515002 , 528501 , 532557 , 532568 , 532573 , 532783 , 532866 , 536200 , 547447 , 552644 , 575253 , 575601 , 575708 , 576949 , 579826 , 586583 , 590757 , 591835 , 592580 , 594340 , 598287 , 604426 , 604939 , 616387 , 629347 , 640751 , 641126 , 650519 , 655927 , 656523 , 660762 , 692723 , 707416 , 710435 , 710480 , 710671 , 711948 , 720259 , 769963 , 782043 , 788856 , 799767 , 804415 , 818532 , 818546 , 818561 , 818573 , 826346 );
Copy