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

Optimize Post Model Schema #22

Open
NeyuD96155 opened this issue Apr 10, 2024 · 0 comments
Open

Optimize Post Model Schema #22

NeyuD96155 opened this issue Apr 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NeyuD96155
Copy link
Owner

Problem:
The current Post model schema includes references and array fields that are not indexed. This could potentially slow down query performance as the dataset grows.

Proposed Change:

  • Add indexes to author and potentially tags fields to improve query performance.
  • Evaluate the necessity of indexing status based on query patterns in the application.

Expected Outcome:
Improved performance for queries involving the Post model, especially when filtering by author, tags, or status.

@NeyuD96155 NeyuD96155 added the enhancement New feature or request label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant