Skip to content

Batch persisted download writes #2418

Open

Description

@josecelano

Independent follow-up to #2410. Blocked until #1488 is done: measure the persistent completed-downloads listener first, then batch its writes.

Goal

The persistent completed-downloads listener keeps up with the completion rate under load, so its event backlog stays small in normal operation and at shutdown.

Acceptance criteria

  • AC1: From recorded nonzero baselines, per-torrent deltas match each torrent's completions and the global delta matches their sum, on all drivers.
  • AC2: Rate meets the target agreed after T1, with comparable before/after numbers and no unreviewed latency or memory regression.
  • AC3: Rollback, retry, discard, and unknown outcomes are tested and logged distinctly; retry cannot silently double-count an ambiguous commit.
  • AC4: Shutdown flushes the batch within available time, or reports the deadline/failure outcome without claiming persistence completed.
  • linter all exits with code 0; relevant tests pass.

Specification: docs/issues/open/2418-batch-persisted-download-writes/ISSUE.md (added by the spec-only PR).

Activity

  1. added
    Blocked
    on Oct 2, 2026
  2. added 3 commits that reference this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blockeddatabaseperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions