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 Backend #21

Open
7 tasks
elena-krismer opened this issue Jan 14, 2025 · 0 comments
Open
7 tasks

Optimize Backend #21

elena-krismer opened this issue Jan 14, 2025 · 0 comments

Comments

@elena-krismer
Copy link
Contributor

  • refactor code
  • Async Operations: Ensure that all asynchronous operations are efficiently managed. Use Promise.all() where possible to run parallel queries that don’t depend on each other, reducing wait times.
  • Caching: ICaching: Implement caching for data that doesn't change often, such as taxonomy names or other static lookup data. This can reduce database load and improve response times.
  • Validation: Move Joi validation to middleware to clean up the controller functions and centralize validation logic.
  • Denormalization: Consider if denormalization makes sense for any of your tables. This can reduce the complexity of joins but at the cost of increased storage and potential complexities in data consistenc
  • query optimization
  • Batch Inserts/Updates: If operations involve multiple insert/update queries, consider batching these operations to minimize the number of database hits.
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

No branches or pull requests

1 participant