Outbox prune and purge by handler read every failed row that the failed index cannot filter
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, postgresql, sqlite
- Ambito
- database, performance
Direzione di ricerca
Read the ix_cms_outbox_failed definition from PR #3406 and inspect OutboxPruneJob and OutboxDeadLetters to confirm the prune and purge queries. Measure both query plans with a large failed set; then either document the measured cost or propose an index change and obtain the required model slot. The issue gives no test or benchmark file, so first locate the query and database model tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
ix_cms_outbox_failed (PR #3406) is on cms_outbox (sequence DESC, id) filtered to status = 'failed'. It serves the dead-letter list exactly. Two other readers of failed rows also walk it, but filter on columns it does not hold, so they read every failed row to find the few they want:
- the prune of failed rows (
OutboxPruneJob):available_at < before AND attempts >= MaxAttempts; - the purge of a handler's dead letters (
OutboxDeadLetters, purge by handler):handler = ?.
With the 30-day retention the failed set stays bounded, but a burst of failures (a receiver down for days) makes each hourly prune batch, and each purge, read that whole set.
Proposal
Measure it with a realistic failed set first. If it matters, add the filtered columns to the index as included columns (PostgreSQL, SQL Server) or as trailing keys (SQLite). Or add a second filtered index on (handler, available_at). That is a model change, so it needs the model slot.
Acceptance
- The prune and purge-by-handler plans are checked with a large failed set, and either fixed or the cost is documented
- Lingua principale
- C#
- Stelle
- 567
- Fork
- 107
- Merge medio
- 1h 19m
- PR unite (30g)
- 353
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fluentcms/FluentCMS
-
area:localization plugin type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:storage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:testing type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area:api area:publishing type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
fluentcms/FluentCMS#3473 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:storage plugin type:bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeForse già presa @Goldziher l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsApertabug sev-5 vm
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
area:jobads-cv bug FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
klasolsson81/jobbliggaren#2271 ·
I maintainer di solito rispondono entro 1 giorno