provide warnings from dcc.Store depending on data size
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 24.4k
- Fork
- 2.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 13
Descrizione
The docs for dcc.Store note (at the very bottom):
The maximum browser storage space is determined by the following factors:
Mobile or laptop
The browser, under which a sophisticated algorithm is implemented within Quota Management
Storage encoding where UTF-16 can end up saving only half of the size of UTF-8
It's generally safe to store up to 2MB in most environments, and 5~10MB in most desktop-only applications.
modified_timestamp is read only.
There are clear and quite low storage limitations, but for the developer it is not obvious that dcc.Store is a "use don't abuse" component unless they know these docs well. I've seen many cases of developers working with dcc.Store and dumping massive datasets into it without realizing the practical implications of this.
It would be great if dcc.Store had some monitor for the size of data being passed to it and could raise a warning to the developer that they might consider other options to support caching data once it reaches a certain threshhold.
Guida per i contributori
Apri 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.
Direzione di ricerca
Inizia individuando l’implementazione di dcc.Store e la documentazione o i test esistenti; l’issue non fornisce alcun file sorgente né un punto di ingresso per i test. Esamina i limiti documentati dello storage del browser, quindi chiarisci la soglia di avviso e gli ambienti supportati prima dell’implementazione. Il lavoro è completato quando gli sviluppatori ricevono un avviso al raggiungimento della soglia di dimensione concordata da parte dei dati memorizzati, con copertura dei test per questo comportamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100