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

Add index for channel_id #16

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Add index for channel_id #16

merged 1 commit into from
Jul 27, 2023

Conversation

khakers
Copy link
Collaborator

@khakers khakers commented Jul 27, 2023

Channel_id is the main query field for nearly every log related database operation and isn't indexed in MongoDB . Adding one should speed up all log related database operations, especially in large collections.

It will result in more storage utilization in MongoDB due to the index size, proportional to the number of modmail logs.

Channel_id is the main query field for nearly every log related database operation and for some reason it isn't indexed. This should speed up all log related database reliant operations especially on large collections
@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for modmail-docs canceled.

Name Link
🔨 Latest commit 84820c5
🔍 Latest deploy log https://app.netlify.com/sites/modmail-docs/deploys/64c2d4c5b1755e00085b8d61

@khakers khakers merged commit cf4e377 into raidensakura:develop Jul 27, 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