IndexedDb数据量限制? [英] IndexedDb Restrictions with data amount?

查看:984
本文介绍了IndexedDb数据量限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我们需要使用IndexedDb来离线使用我们的应用程序。我们的应用程序与地图解决方案相关使用OpenLayer创建地图。我们不仅需要存储地图本身,还需要存储地理数据。地图是基于矢量的,可以是100-300 Mb的大尺寸。这是一个主要问题吗?任何人都可以在我们的解决方案中找出任何其他限制吗?



谢谢!



Petri

Hello,

We have a need to use IndexedDb for Offline usage of our applications. Our applications are related with map solutions. Maps are created by using OpenLayer. We need to store not only a map itself but also geodata. Maps are vector based and can be as big size as 100-300 Mb. Is that a major problem? Can anyone figure out any other restrictions in our solution?

Thanks!

Petri

推荐答案

不同的浏览器对indexedDB有不同的限制......



Firefox - 没有实际描述,但存储大于50MB将导致浏览器要求最终用户达成协议......

IE - 它有一些限制即使在API(并非所有支持),每个应用程序的数据也可高达250 MB ...

Chrome - 这是一个动态计算 - 基本上它高达20%的1/3的可用磁盘空间......但它是一个共享空间,所以它可以更少



您可能需要特定的浏览器才能与您的应用程序一起使用(不太好,但可以忍受),还要看离线时应该存储多少这样的地图......
Different browsers have different restrictions on indexedDB...

Firefox - has no actual description, but storing larger than 50MB will cause the browser to ask the end user to agreement...
IE - it has some restrictions even in the API (not all supported), and also data can be up to 250 MB for each application...
Chrome - it is a dynamic calculation - basicly it is up to 20% of the 1/3rd of the available disk space...However it is a shared space, so it can be less

You may demand a specific browser to use with your application (not too nice, but bearable), also have to see how many such maps should be stored while offline...


这篇关于IndexedDb数据量限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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