Skip to content

Conversation

TheOneFromNorway
Copy link
Contributor

@TheOneFromNorway TheOneFromNorway commented Sep 16, 2025

  • Exists were originally in place but got replaced with CTE to solve short term performance isseus
  • CTE is using a lot of memory while it is performant for larger results it is not very performant for low resutlts.
  • With new index structure exists are only executed for relatively few rows, implying that EXIST clauses again become more performant

JIRA Ticket - MAV-2001

@TheOneFromNorway TheOneFromNorway requested a review from a team as a code owner September 16, 2025 11:38
- Exists were originally in place but got replaced with CTE to solve
  short term performance isseus
- CTE is using a lot of memory while it is performant for larger results
  it is not very performant for low resutlts.
- With new index structure exists are only executed for relatively few
  rows, implying that EXIST clauses again become more performant
@thomasleese thomasleese force-pushed the speedup_patient_lookups branch from 80c836e to 98bc56e Compare September 16, 2025 14:18
Copy link

@TheOneFromNorway TheOneFromNorway merged commit fcee053 into next Sep 16, 2025
26 checks passed
@TheOneFromNorway TheOneFromNorway deleted the speedup_patient_lookups branch September 16, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improving performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants