Which Would Use More Memory? Array Vs Sqlite (android)
So, I am developing an app that at some point needs to choose random types of words. For example, a button will be pressed and it needs to retrieve maybe two adjectives, a noun, an
Solution 1:
Unless you want to store the data persistently I'd say you should probably just use an Array. Databases are more for persistent storage (i.e. stuff you'll need over multiple runs of your app). That said, if you arrays start getting reeeeeeeeeealy* big, then yea you're going to want to move them onto disk (in which case they won't take up any memory). And probably the simplest way to do that is with a database.
*On the order of magnitude of hundreds of thousands of entrys, maybe even more.
Post a Comment for "Which Would Use More Memory? Array Vs Sqlite (android)"