Skip to content

Conversation

@doppleware
Copy link

@doppleware doppleware commented Jun 1, 2025

This PR addresses a performance issue in the clinic_activity_logs table queries.

Problem:

  • Query execution time increased from 667.7 microseconds to 2.68 seconds
  • Full table scan required for queries filtering on numeric_value column

Solution:

  • Added an index on the numeric_value column
  • This will improve query performance for WHERE clauses using numeric_value

Impact:

  • Reduces query execution time
  • Eliminates full table scans
  • Improves overall application performance

Related Issue: #94
Incident ID: 5aa1fb7a-3656-11f0-8db3-ca59c7e8e81d

@doppleware doppleware closed this Jun 2, 2025
@doppleware doppleware deleted the fix-slow-query-clinic-activity-logs-created-by-agentic branch June 2, 2025 16:08
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.

2 participants