[Xapian-devel] InMemory backend

Richard Boulton richard at tartarus.org
Thu Sep 9 17:11:04 BST 2004


On Thu, 2004-09-09 at 02:28, Olly Betts wrote:
> It is useful to be able to open small temporary databases in memory,
> but I think from a performance and from a code maintenance point of
> view we'd be better off providing an alternative lower level for
> quartz which uses memory instead of disk to store the Btree.  Or
> perhaps replaces the Btree with a suitable map<>, but I think
> a lower level is more appropriate.

I think this is appropriate - it should reduce code size and complexity,
and has the potential to be a lot more memory efficient than the current
InMemory databases.

For what it's worth, this is the approach taken by SQLite to implement
in-memory databases.

-- 
Richard





More information about the Xapian-devel mailing list