java - In memory mongodb for read-intensive applications -
i have project in data readonly (no writes @ all) , each request couple of thousand reads performed , bottleneck getting data database.
we're running tokumx on tmpfs (~12gb compressed database) , still slow serialization , socket communication take substantial time, wanted "cache" 1 critical collection of 4.5m documents accessed through single simple query. eventually, might migrate whole database in-memory data store make faster.
for now, thinking of using plain hashmap loaded @ app startup, i'm not sure best way :) other options fongo made unit testing , i'm not sure fast enough kind of situation
any suggestions use problem?
i suggest check google library guava.
https://github.com/google/guava
with cache can load data @ app startup in case data not inside cache, can create function query database.
Comments
Post a Comment