Dashboard graphs load every job into memory to count them
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
- 46/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, mongodb
- Ambito
- backend, databases, performance
Direzione di ricerca
Start in src/TickerNet.Dashboard/Infrastructure/Dashboard/TickerDashboardRepository.cs at the count calls around lines 73, 212, 334 and 373, then read TickerEFCorePersistenceProvider.cs around lines 92-101 and 273-277 to see how the null filter materializes rows. Add count-by-status and count-by-day methods to the persistence provider interface and both EF Core (GROUP BY) and MongoDB implementations, call them from the repository, and write a failing test first. Done when the dashboard aggregates in the store and the new test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
The dashboard's home page and graph endpoints load every row into memory to count them by status. TickerDashboardRepository (src/TickerNet.Dashboard/Infrastructure/Dashboard/TickerDashboardRepository.cs, around lines 73, 212, 334 and 373) calls the persistence provider with a null filter, and the EF Core provider then loads all time tickers with their children (TickerEFCorePersistenceProvider.cs, around lines 92-101 and 273-277), and the same for cron occurrences. The counting happens in memory.
Impact
On a store with many finished jobs, opening the dashboard can use a lot of memory and run the app out of it. High. Retention (#51) reduces the table size but doesn't fix the query.
Fix idea
Add provider methods that count by status (and by day for the range graphs) in the store, with GROUP BY in EF Core and aggregations in MongoDB, and use them from the repository.
Found while checking which problems that TickerQ fixed after the fork still exist in TickerNet. Fix it from this description and TickerNet's own code only: never read or copy code from TickerQ 10.5.0 or later (see CONTRIBUTING.md). Please add a test that fails before the fix.
- Lingua principale
- C#
- Stelle
- 0
- Fork
- 2
- Merge medio
- 1h 8m
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né 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 TickerNet/TickerNet
-
.NET bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
.NET enhancement good first issue roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Document PathBase inside the dashboard branch and WebDAV on IISForse già presa @harryhawwy69 l’ha presa oggi. Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 40/100
I maintainer di solito rispondono entro 1 giorno
-
TickerFunctionProvider's registry is publicly writableForse già presa @harryhawwy69 l’ha presa oggi. Aperta.NET bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorForse già presa @harryhawwy69 l’ha presa oggi. Apertabug good first issue javascript
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TickerNet/TickerNet
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
dotnet-outdated/dotnet-outdated#871 ·
I maintainer di solito rispondono entro 1 giorno
-
triage/untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26676 ·
I maintainer di solito rispondono entro 1 giorno
-
[问题] 导出文件时,提示后面还有1243390911步Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jhaizhou-ops/S2Arm#2177 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area-CodeGen-coreclr untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotnet/runtime#138181 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
CO spearhead is too loudApertaS: Untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni