[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LMDB usage with long or variable length keys
- To: openldap-technical@openldap.org
- Subject: LMDB usage with long or variable length keys
- From: "Alex V." <alex.v.odesk@gmail.com>
- Date: Wed, 22 Apr 2015 04:17:48 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=uiVpUaid0PWDKyEApWk1vxV2Unz2JPiUGuzUykrVlO0=; b=Bh6q2KFR3K26PfyJ4nypAqYBM7MefO8XVAB9lNrwyYYOXqv9qqH5Flpuc1tJWEtlXH cne4J8HgmEq0th/g3c0D4YbCJif2QUH/zEL5fftbVe7kKgNNE8iJeMp827YIH9ejagBm KkHB+jOMm+7qBY5tbr4LC+f7B2XRHKjvgSQyyaBQuAZ0PwsVgqfg57uIles+pSXO85IO T/hwa6cnrstBMqjGWbUsvjw2oE6R1X1QFn1xFuWQsPokbBJhvNQTm+bHwXXoRqVmKEWo WlsndLp2bmvqPtuUkB+Q/wTQy/NOT6CW3xK3aXIPQ0hftOrKh0buTU27VpxckZiqEILo bTJw==
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
I am new to key-value stores. I would like to use it like big persistent
associative array and I want to be able to use long length keys. For
example file path or URL. What technique should I use to implement such
dictionary on top of LMDB? Probably some kind of hashing and collision
resolution? Or just recompile with MDB_MAXKEYSIZE=2047 or something like
this? Or LMDB is a wrong tool for this job?