Skip to content

Improve account search performance - #129

Merged
schbetsy merged 2 commits into
mainfrom
acct-search-perf
Oct 20, 2026
Merged

schbetsy merged 2 commits into
mainfrom
acct-search-perf

Conversation

@schbetsy

@schbetsy schbetsy commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Internal ticket 1148.

Changes

  • Update the subqueries that the account search endpoint makes. The query was doing multiple unnecessary joins and returning many unneeded columns.
  • Add an index on consumer account number in the evaluator result materialized view. The account search endpoint includes a total of all evaluator results for each consumer account.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated
  • Reviewers requested with the Reviewers tool ➡️

The query was doing multiple unnecessary joins and returning many
unneeded columns
to improve account search endpoint performance
@schbetsy
schbetsy merged commit 078281d into main Oct 20, 2026
7 checks passed
@schbetsy
schbetsy deleted the acct-search-perf branch October 20, 2026 21:25
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