Maximum SQLite size using blob

半世苍凉 提交于 2019-12-23 11:07:43

问题


I want to create a database where text and images will be stored using blob. There will be about 5-6k entries and the size of the image will be around 1MB. That means 5-6GB of storage. Will my app be able to handle all that storage or it will crash? I wonder cause my phone is 16GB and it will be around 50% of phone's free storage. In case blob doesn't work is there an other method I can use?


回答1:


SQLite itself will handle that much data just fine. (Databases can have up to 140 TB.)

It might be more efficient to store large images in files instead; see Internal Versus External BLOBs in SQLite. However, mobile devices behave differently; you'd have to measure it to find out which is faster.

Regardless of how you store the data, as long as you still have free space, you still can store data.



来源:https://stackoverflow.com/questions/26968537/maximum-sqlite-size-using-blob

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!