[prev in list] [next in list] [prev in thread] [next in thread]
List: openldap-devel
Subject: Re: Does a LMDB database file ever shrink, after row deletion, if so when?
From: Howard Chu <hyc () symas ! com>
Date: 2015-05-23 19:46:54
Message-ID: 5560D92E.7080907 () symas ! com
[Download RAW message or body]
Tinker wrote:
> Hi!
>
> Is there any mechanism in LMDB to give back disk space after some particular
> amount of row deletion, how does this work, if not are there any plans for it
> now?
No. LMDB keeps all space and reuses it for future write operations.
> If there's not, as a user I need 2x disk space and some mechanism to be able
> to migrate, so automatic shrinking would be a great thing.
There's nothing automatic but you can use mdb_env_copy() to implement your own
strategy.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic