Skip to content

#416 Persistent SQLite connection for MCP calls #419

Closed

Description

@ajianaz

Problem

SQLite connection is opened, PRAGMAs set, and migrations run on every cora brain / MCP call (~10-15ms overhead).

Location

src/index/mod.rs:31-41 via src/mcp/tools.rs:395-403

Solution

Use OnceLock<Connection> or a connection pool for the MCP server process.

Expected Impact

Save 10-15ms per search call.

Activity

  1. ajianaz commented on Jul 28, 2026

    @ajianaz
    CollaboratorAuthor

    Meta-tracker. Sub-issue #416 already closed (deferred). Low priority.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions