Skip to content

[Feature] Use trigram index for session search on SQLite #8285

Description

@craiuconstantintiberiu

Problem or use case

Text search on SQLite on omnigent reads every message on every search and uses a LIKE query so it gets slower as history grows.
On Postgres this is already fixed by using a trigram index (#4502), SQLite can have support for this too.

Proposed solution

Add an FTS5 trigram index on SQLite 3.34+.

Alternatives considered

The existing conversation_items_fts table uses a word tokenizer, so it can't match substrings (andbox in sandbox).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FeatureNew feature or requestP2-mediumPriority: bug with workaround, important feature requestcomp:dbDatabase, persistence, and migrationscomp:reprComponent: serialization, representation layerhelp wantedExtra attention is neededtriagedIssue has been triaged by the bot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions