Does the SQLite db count towards the app's memory limit?
I have an app that stores lots of things in SQLite. Does this count towards the memory limit that apps have? (dependent on hardware this is between 16 and 32 mb).
What about the :in-memory: flag for o开发者_如何学Pythonpening a DB on android?
The database does not count against the memory limit since it's just a file. The :in-memory: flag, though, does count against the memory limit.
As iconiK says, there is no limit for the database. But the internal memory of the device where your code is running is the limit, if your database grows until the maximum internal memory size, it will throws an exception when you will try to write some stuff in db.
精彩评论