-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss limits applied to storage.local API #351
Comments
AFA storage.sync, in addition to Maximum total size, please also consider Maximum number of items and especially Maximum item size as well. |
I'm infer of bumping |
Chrome is in support of raising the |
Increase the memory limit of chrome.storage.local from 5MB (5242880 bytes) to 10MB (10485760 bytes), following discussions in the Web Extensions Community Group: w3c/webextensions#351. This makes sure we provide at least as much storage as storage.session. Bug: 1434464 Change-Id: I373c54530a4183223d41142f91ba948c9f2a0c97 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442269 Auto-Submit: Oliver Dunk <[email protected]> Reviewed-by: Devlin Cronin <[email protected]> Commit-Queue: Devlin Cronin <[email protected]> Cr-Commit-Position: refs/heads/main@{#1132267}
We've increased the storage.local limit to 10MB in Chrome, and it should be available in Canary later today, and in general from Chrome 114+ once that hits stable: https://bugs.chromium.org/p/chromium/issues/detail?id=1434464. |
Great to see that storage.local has been bumped to 10MB. 🎊 Can |
This is the trickiest one to change since we would need to make sure the syncing mechanism in Chrome is able to handle it. Happy to discuss it but I suspect there would be some hesitation. |
Rob replied in another issue for
If so, we can close this issue, although developers are looking forward to it very much. |
@hanguokai, I think we should keep this open to track increasing the size of |
@oliverdunk Ok, we will close this issue when all browsers implement increasing the maximum total size of |
I opened a new issue at #520 for |
(To avoid getting off topic #350, I open another discussion here)
storage.local
andstorage.sync
are the oldest and most commonly used APIs. Usually they are used as persistent storage for user data or user settings.Storage Quota
At present,
storage.local
has 5MB limit,storage.sync
has 100KB limit. This limitation has existed for a long time. As user devices and cloud storage capabilities improve, should it be increased now?I suggest increasing the storage limit of
storage.sync
to 1MB, and the storage limit ofstorage.local
to 50MB.I know the "unlimitedStorage" permission for
storage.local
. Due to the 5MB storage limit, I am often hesitant whether to use this permission, especially for user-defined data.As a contrast, other Web storage technologies can use much more space by default, like
CacheStorage
andIndexedDB
.The browser's built-in support for data synchronization is great, because it's non-trivial for developers to create their own cloud synchronization. But due to the 100KB storage limit, to use it, I usually have to carefully evaluate each possible data item.
Performance
Does performance degrade as storage usage increases? Different browsers may have different implementations and optimizations. I didn't do the test. Normally, a Key-Value database should not have this problem.
The text was updated successfully, but these errors were encountered: