[Date Prev][Date Next]
Re: Possibility of supporting snapshot in LMDB
- To: Xinhai Kang <firstname.lastname@example.org>, email@example.com
- Subject: Re: Possibility of supporting snapshot in LMDB
- From: Howard Chu <firstname.lastname@example.org>
- Date: Fri, 20 Nov 2015 01:37:08 +0000
- In-reply-to: <CAEe0cP4pK1+PPk+hbrF3LnMuw4p+kh=DCJeFaPsZJNs+TxEUxw@mail.gmail.com>
- References: <CAEe0cP4pK1+PPk+hbrF3LnMuw4p+kh=DCJeFaPsZJNs+TxEUxw@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38a1
Xinhai Kang wrote:
I am new to LMDB and I am checking the possibility of having persistent
snapshot support in LMDB.
In the current code, LMDB creates a transient snapshot when a transaction is
started. And also, LMDA supports multiple multiple databases in an
environment. I am wondering if it is possible to make the snapshot persistent
by storing the snapshot as a separate database (can different database share
pages? Or can multiple trees in the same database?).
I look forward to hearing from you! Or please kindly let me know if similar
feature has already been implemented somewhere.
That is not a feature that we need/want in LMDB. If you want persistent access
to historical versions of a DB, use an append-only database. The btree.c
written by Martin Hedenfalk would be one example.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/