I am using SQLite3 and Hibernate with Java. Can I somehow load the whole database in memory or fetch all data from the database so that I can access mapped objects fastest? For example if we have a Company and Employee classes and in Company we’ve mapped the Employees as company.getEmployees(). I would like to fetch all companies from the database and later when I call this method I’d like to get the employees immediately. So is there a way to preload them? Further, if employee is mapped to other objects, can I preload them too? To summarize, I’d like to load the whole database and use the ORM to access the data. Thanks!
Share
If your goal is simply blazing performance you have several options:
I suggest ObjectDB if you aren’t required to use SQL.
(EDITS: Removed eager fetching, added query cache.)