Skip to content

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