Skip to content

Fix Patient Records Query Performance-created-by-agentic #79

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shaykeren
Copy link

This PR addresses performance issues in the Patient Records Query endpoint by:

  1. Added index on patient_weight column for faster lookups
  2. Implemented batch processing in the getRecords method
  3. Added caching support for query results
  4. Optimized query execution with proper pagination

Changes made:

  • Added @Cacheable annotation for result caching
  • Modified query to use LIMIT and OFFSET for batch processing
  • Added cache configuration
  • Added index on patient_weight column

Testing:

  • Verified index creation
  • Tested query performance improvements
  • Validated caching behavior

Related to performance degradation incident in the MELOONA environment.

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