Skip to content

Conversation

rachelks
Copy link
Member

@rachelks rachelks commented Oct 23, 2026 •

Closes #55

Summary

  • Added prefix matching for album titles and artists using PostgreSQL full-text search and the existing GIN index.
  • Added unit tests and PostgreSQL integration tests.
  • Benchmarked search performance with 100,000 synthetic albums.
  • Updated README with search behavior, performance results and sustainability considerations.

Performance

Local PostgreSQL 18.6 measurements with 100,000 synthetic albums:

Search Matches Query time
synth 100,000 ~35 ms
synthetic art 100,000 ~53 ms
synthetic album 99999 1 ~1.3 ms

Broad prefixes can increase database processing for ranking, counts and facets. All tested queries used the existing GIN index.

@rachelks rachelks requested a review from a team as a code owner October 23, 2026 19:39
@rachelks rachelks linked an issue Oct 23, 2026 that may be closed by this pull request
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The prefix-search implementation and tests are clear, and thanks for confirming that the PostgreSQL integration tests were run successfully against PostgreSQL 18.6. CI passes. Approved.

@robertky robertky merged commit da22e8b into main Oct 26, 2026
2 checks passed
@rachelks rachelks deleted the feat/55-prefix-search branch October 29, 2026 15:37
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefix matching in search so partial words find things
2 participants