Really huge dictionary

What is the best way to store a really large dictionary in Java and make the best use of it at runtime? I would like to implement a complete dictionary and module type synonyms.

Update:
Suggest any general design pattern that can be used for this requirement.

+4
source share
2 answers

Just use the database for this kind of thing. It meant for that. If you do not want to have a central database server, just use one of the embedded databases. At the very least, you'll follow standard templates and still benefit from the ability to work locally.

http://db.apache.org/derby/

http://hsqldb.org/

http://www.h2database.com/html/main.html

+9
source

One of the easiest and fastest (for code c) db is sqlite . It should be good enough for your needs. I have successfully used sqlite to store several gigabytes of data without any problems.

+5
source

Source: https://habr.com/ru/post/1485082/


All Articles