One outbox event costs seven to nine write transactions on SQLite

Offen
#3,282 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp, sqlite
Bereich
backend, databases

Rechercherichtung

Start with OutboxDrainer.cs at the cited lines and OutboxKick.cs:24, then trace how delivery claims, leases, and settlement work with SQLite. The proposal identifies four changes, but does not name tests or explain how maintenance scheduling is structured. Done means the acceptance criterion holds: delivering N events uses O(1) write transactions, excluding handlers' own transactions.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:events performance type:bug

Problem

On SQLite every ExecuteUpdate/ExecuteDelete takes BEGIN IMMEDIATE. OutboxDrainer (OutboxDrainer.cs:87,115,248,258) runs the exhausted sweep on every loop, renews each row on start, and settles each row on its own, on top of the kick insert and the job claim and settle (OutboxKick.cs:24). Under editing load this multiplies writer-lock waits and the risk of database is locked.

Proposal

Move the exhausted sweep to maintenance, skip the start renewal while the claim lease covers the delivery timeout, settle a batch in one update, and filter the kick query by queue and due time.

Acceptance

  • Delivering a batch of N events takes O(1) write transactions plus the handlers' own

Found in the code review of 17 Nov 2026 (P3).

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
2 Std. 49 Min.
Gemergte PRs (30 T.)
397

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.