Memory resident StrokeDB

0 views
Skip to first unread message

JasonGoecke

unread,
Apr 12, 2008, 8:59:18 PM4/12/08
to StrokeDB
Is it possible to have a memory resident only StrokeDB instance that
may later be synched to the filesystem? I have seen this thread:

http://groups.google.com/group/strokedb/browse_thread/thread/2c215cf87ae7563f/6b6487b5efdda7ee?lnk=gst&q=memory#6b6487b5efdda7ee

But it is not clear how to build a memory resident StrokeDB, maybe
even in the future to memcached?

Yurii Rashkovskii

unread,
Apr 12, 2008, 11:19:07 PM4/12/08
to stro...@googlegroups.com

That could be done with configuring StrokeDB as:

StrokeDB::Config.build :storages => [:memory_chunk], :base_path =>
@base_path, :default => true

though you will need some extra effort to sync memory storage to file
storage, so another way is to configure StrokeDB as usually, but with
autosync switched off:

StrokeDB::Config.build :store_options => { :noautosync =>
true }, :base_path => @base_path, :default => true

and use StrokeDB.default_storage.chunk_storage.sync_chained_storage!
to sync storages manually.

Hope that answers your question.

Also I would like to know that I am currently working on new-storages
branch, so things will change slightly and hopefully API will be a
little bit nicer than now.

Yurii.

Reply all
Reply to author
Forward
0 new messages