I’d like to use java to work with a data structure that’s going to end up over 100 GB. I need to write and read from the thing in 1:1 ratio, as many times per second as possible. In Java form it’s a HashMap>. Can I keep and operate on it in disk as if it were in RAM? Can this double as a persistence scheme?
Share
There are “cache” packages that can help you out here. Ehcache comes to mind. It will allow you to create a cache which stores a finite # of objects in memory, and overflows additional objects to disk. This is all done behind the scenes, so all you have to do is get/put from the cache.