Skip to content

#412 Channel-based DB writer for parallel indexing #415

Closed

Description

@ajianaz

Problem

With #409 (parallel parsing), multiple threads produce DB writes but SQLite only supports one writer.

Solution

Producer-consumer pattern: N parser threads via channel, 1 writer thread batch-writes to SQLite.

Expected Impact

Eliminates DB contention.

Dependency

Blocked by #409, builds on #404, #405.

Activity

  1. ajianaz commented on Jul 28, 2026

    @ajianaz
    CollaboratorAuthor

    Superseded. usearch insert is the bottleneck (84% of time), not DB writes. Channel-based writer adds complexity without meaningful speedup.

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