Search code examples
androidsqlitememory-limit

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 opening a DB on android?


Solution

  • 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.