One outbox event costs seven to nine write transactions on SQLite

Abierto
#3,282 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, sqlite

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
C#
Estrellas
569
Forks
107
Merge medio
2 h 49 min
PR fusionados (30 d)
397

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fluentcms/FluentCMS

Todos los issues de fluentcms/FluentCMS

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.