Store data in memory completely

9 views
Skip to first unread message

dulanov

unread,
Jun 28, 2011, 10:53:25 AM6/28/11
to babudb
Hello, can babudb store data in memory as redis can or it read them
from files every time (from linux disk cache in reality)? My
application read/write ratio is more then 1000 and data fits in to the
memory completely, so that feature is quite sensitive.

Jan Stender

unread,
Jul 1, 2011, 9:10:12 AM7/1/11
to bab...@googlegroups.com
Hi,

BabuDB keeps all data in the main memory until it exceeds a certain size
limit. At that time, it creates one or more checkpoint files, which are
typically memory-mapped and thus may have to be paged in from disk when
being accessed.

The Java release of BabuDB allows you to adjust the
"babudb.maxLogfileSize" configuration parameter to change the
checkpointing limit. If you know that your data will never exceed your
main memory, you can simply adjust it to some value larger than your
main memory in bytes. This will effectively prevent checkpoints from
being created and ensure that no data is read from disk anymore once the
system is up and running.

Hope this helps and best regards,
Jan

Reply all
Reply to author
Forward
0 new messages