Skip to content

fix(search): chunk long sqlite like terms#37

Open
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/chunk-long-search-terms
Open

fix(search): chunk long sqlite like terms#37
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/chunk-long-search-terms

Conversation

@Lubrsy706
Copy link
Copy Markdown

Fixes #36.

Summary

  • split long LIKE search terms into chunks below the Durable Object SQLite pattern limit
  • apply the same guard to global, from, to, and subject search filters
  • keep multi-column search semantics by AND-ing chunks and OR-ing each chunk across searchable columns

Tests

  • npm run typecheck

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.

Potential PR: long search strings can 500 via Durable Object SQLite LIKE pattern limit

1 participant