Speed up the dashboard
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- data-visualization, performance
Direzione di ricerca
Inizia profilando la dashboard con i dataset CSV da 1,6 MB e 3,3 MB, concentrandoti sull’elaborazione iniziale e sulle selezioni della mappa color-by. Leggi la documentazione sulle prestazioni di Dash e confronta le opzioni di caching, Patch Class, orjson e clientside callback menzionate. Il lavoro è completato quando è stato identificato il collo di bottiglia e sono stati dimostrati un caricamento più rapido e aggiornamenti più veloci della mappa senza compromettere la dashboard.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, the dashboard starts to slow down with datasets at about 1.6MB, this becomes more pronounced by 3.3MB (CSV with about 12,000 rows by 15 columns).
The slow down is most pronounced in
- Initial processing of the dataset (hence we have a loading indicator).
- Selecting different color-by options for the map distribution; the change in the map has a pronounced delay.
Diagnosing the specific source of the slow down (if it's one or more reasons) is still required.
The Dash documentation provides various suggestions under their performance section, and the dash-extensions package also has some options:
- Flask caching. Since the processing is only done once, this would only have potential to speed up the graphing components, though initial testing didn't seem to show improvement.
a. A similar solution is background caching.
b. Dash-extensions has a package for server-side caching: ServersideOutput Transform. This removes the need for JSON serialization between callbacks and should speed things up, though I'm not sure how effective it was (I tried an implementation on the server-store branch). This would also require a regular clean-up of the cached files (as with the previous two). - Dash Patch Class for updating the map (and potentially other graphs as well). Plotly express is fast, but starts to slow down around 15K points (per dash performance docs). I attempted to implement this with the map, but my initial attempt was unsuccessful.
- Using orjson. I'm unclear on precisely how this potential solution works, it seems (and this) that having the package installed allows dash to serialize json strings with orjson instead. There are errors thrown if you try to use it for the serialization (the speedup comes from the fact that it's bytes).
- Clientside Callbacks. To implement this, the graphing portion would have to be translated into Javascript.
- Lingua principale
- Python
- Stelle
- 6
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna 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 Imageomics/dashboard-prototype
-
enhancement help wanted question UX
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
organization
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Filtering QuestionsApertaquestion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
enhancement question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di Imageomics/dashboard-prototype
Issue simili
-
bug(mcp): handle malformed and partial reranker responses safelyForse già presa @KamilEjaz890 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kubeflow/docs-agent#301 ·
I maintainer di solito rispondono entro 4 giorni
-
Update the demo docsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
pulp/pulp_workflow#78 ·
-
Invalid syntax in sshtunnelApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pgadmin-org/pgadmin4#10797 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
gcivil-nyu-org/team5-mon-fall26#132 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
gcivil-nyu-org/team4-mon-fall26#291 ·
I maintainer di solito rispondono entro 1 giorno