forked from digma-ai/otel-sample-app-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
This issue addresses performance degradation in the patient records query endpoint.
Current Issues
- Missing index on patient_weight column causing full table scans
- Sequential query processing without batching
- No caching for frequently accessed records
- Missing pagination for large result sets
Proposed Changes
- Add index on patient_weight column
- Implement batch processing for queries
- Add query result caching using Spring Cache
- Implement proper pagination
- Add monitoring for query execution times
Implementation Details
-
Schema changes:
- Added index on patient_weight column
-
Code changes:
- Added Spring Cache configuration
- Implemented batch processing
- Added pagination support
- Added query execution time monitoring
Testing
- Performance tests should be run to verify improvements
- Monitor query execution times before and after changes
Related PRs
- PR will be created with implementation