[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [LMDB] Support for secondary index



Alain wrote:
I am trying to port an application that currently uses BDB and I'm stuck with
how to implement secondary indexes with LMDB.

Can you point me in the right direction here.

LMDB doesn't implement indexing of any kind, you'll have to do that yourself. You can take a look at OpenLDAP's slapd/back-mdb code to see how we do it. It's basically the same solution we used in back-bdb, since BDB's native indexing support was so slow.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/