Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ent] add index to optimize the feed query. #26

Merged
merged 1 commit into from
Oct 24, 2023
Merged

[ent] add index to optimize the feed query. #26

merged 1 commit into from
Oct 24, 2023

Conversation

yssk22
Copy link
Owner

@yssk22 yssk22 commented Oct 24, 2023

Summary

we now use asset_type and post_at field together to fetch the feed in v3 so let's add an index.

** Migration SQLs **

ALTER TABLE `hp_feed_items` ADD INDEX `hpfeeditem_owner_member_id_asset_type_post_at_id` (`owner_member_id`, `asset_type`, `post_at`, `id`);

Test

  • confirmed already in production database

Issue

  • N/A

**Summary**

we now use asset_type and post_at field together to fetch the feed in v3
so let's add an index.

** Migration SQLs **

````
ALTER TABLE `hp_feed_items` ADD INDEX `hpfeeditem_owner_member_id_asset_type_post_at_id` (`owner_member_id`, `asset_type`, `post_at`, `id`);
````

**Test**

- confirmed already in production database

**Issue**

- N/A
@yssk22 yssk22 temporarily deployed to ci-go October 24, 2023 03:42 — with GitHub Actions Inactive
@yssk22 yssk22 merged commit ac347f8 into main Oct 24, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant