You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
provide warnings from dcc.Store depending on data size #2123
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.
Reacted by Hannah Ker, Emily KL, Amira Doghri, Sam Tripp, Tammy Do, amelia and kl-thamm
Agreed! There should be some kind of warning, even if the threshold is pretty high. Like Nathan I have also seen lots of apps which put way too much data in dcc.Store and the app is sluggish because of it.
changed the title [-][Feature Request] Warnings from dcc.Store depending on data size[/-][+]provide warnings from dcc.Store depending on data size[/+]on Aug 13, 2024
Activity
emilykl commentedon Jul 8, 2022
Agreed! There should be some kind of warning, even if the threshold is pretty high. Like Nathan I have also seen lots of apps which put way too much data in
dcc.Storeand the app is sluggish because of it.[-][Feature Request] Warnings from dcc.Store depending on data size[/-][+]provide warnings from dcc.Store depending on data size[/+]