Google Chrome浏览器上的Indexed DB有哪些存储空间限制? [英] What are the storage limits for the Indexed DB on Google's Chrome browser?

查看:209
本文介绍了Google Chrome浏览器上的Indexed DB有哪些存储空间限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

软限制是什么(用户需要允许超出限制)?
什么是硬限制(允许的最大值)。

解决方案

警告 - 此信息已过时 - 请参阅下面的其他答案



Chrome已有一个5MB软限制,然后触及 QUOTA_ERR 这是一个MDN参考资料



规范提到 QuotaExceededError 但似乎没有说什么时候应该抛出它。


QuotaExceededError 操作失败,因为没有足够的
剩余存储空间,或者达到了存储配额,并且用户
拒绝为数据库提供更多空间。


我没有听说过硬性限制,也没有在自己的开发中达到过。在你到达之前,演出应该走得很远。

What is the soft limit (at which the user needs to give permission to exceed)? What is the hard limit (maximum allowed).

解决方案

Warning - this information is outdated - see the other answer below.

Chrome has a 5mb soft limit before it hits a QUOTA_ERR. Here's a MDN reference to that fact.

The spec mentions a QuotaExceededError but doesn't seem to say anything about when it should be thrown.

QuotaExceededError The operation failed because there was not enough remaining storage space, or the storage quota was reached and the user declined to give more space to the database.

I've not heard of a hard limit and not reached one in my own development. Performance should go pretty far south before you reach it.

这篇关于Google Chrome浏览器上的Indexed DB有哪些存储空间限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆