I try to load a huge list of words (over 1,3 million). I have some smaller lists of couple hundred thousands (other languages). Those I can load in a lua table without problems. However the nice German word list of http://germandict.sourceforge.net/ is 18.3MB as a text file and seems to be to large. So I am thinking to put that in a SQLite database. I have do have experience with MySQL but not with SQLlite.
Some questions.
The SQLite database will not get loaded into system memory (so memory will not get overflooded)?
My currently released game (Spell Them Out) has an English database of 32,000 words and takes up about 800K in SQLite,
My suggestions:
Download SQLite Database Browser. Great tool, and free! You can import a text file to create a database quickly, and you can execute commands to see if they work as well.
No, the database will not be loaded in memory… only the results of the SQL calls will be loaded into a table in memory.
I followed this page to set everything up, and performance is quite good.
I’m using sqlite to house my 120,000+ terms and definitions. No hiccups either, like John said, get a good tool to help you with getting the data in the database and run queries with and you’ll be fine. Corona makes it easy to interact with the DB.
My currently released game (Spell Them Out) has an English database of 32,000 words and takes up about 800K in SQLite,
My suggestions:
Download SQLite Database Browser. Great tool, and free! You can import a text file to create a database quickly, and you can execute commands to see if they work as well.
No, the database will not be loaded in memory… only the results of the SQL calls will be loaded into a table in memory.
I followed this page to set everything up, and performance is quite good.
I’m using sqlite to house my 120,000+ terms and definitions. No hiccups either, like John said, get a good tool to help you with getting the data in the database and run queries with and you’ll be fine. Corona makes it easy to interact with the DB.