Skip to content
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

Quota exceeded error when there are many site customizations #776

Open
abstiles opened this issue Aug 23, 2024 · 0 comments
Open

Quota exceeded error when there are many site customizations #776

abstiles opened this issue Aug 23, 2024 · 0 comments

Comments

@abstiles
Copy link
Owner

The storage sync limit is 8KB per item, and some users are running into this error since the site settings are all stored as a single item.

Short term solution is to swap away from the synced storage to local storage, which has a total limit of 10MB and no special per-item limit.

Other ideas for making better use of the available storage:

  • Limit on total storage is 100 KB, so splitting the site settings up into separate "buckets" would make better use of the total storage. (The size of each item depends on the length of the URL and how many modifiers are being saved, so this would need to be calculated dynamically every time we save.)
  • Generic compression algorithm applied to existing data. Open question: Can the storage API store raw byte data? Or would I have to base 64 encode it?
  • Special-purpose binary encoding for schemes/modifiers. This would require more discipline in versioning settings data and would probably benefit from pulling in a dependency on protobuf or something.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant