Howard Chu wrote:
> Attached is a proof-of-concept implementation of a sasldb plugin using the new
> memory-mapped database library (MDB) we've developed in the OpenLDAP Project.
> It is probably not suitable for production use, just posting it now to get
> early feedback.
> If you're not familiar with MDB you can read about it at the LDAPCon 2011
> site. The abstract, paper, and presentation slides are all available there.
> http://www.daasi.de/ldapcon2011/index.php?site=program >
> The paper and slides are also available on my on site, in addition to the
> Doxygen docs for the library.
> http://highlandsun.com/hyc/mdb/20111010LDAPCon-MDB.pdf > http://highlandsun.com/hyc/mdb/20111010LDAPCon%20MDB.pdf > http://highlandsun.com/hyc/mdb/ >
A slightly updated db_mdb.c which takes two more config settings:
sasldb_mapsize for setting the maximum size of the database (in units of 1024
bytes) and sasldb_maxreaders for setting the maximum number of reader threads
that can access the database concurrently.
As another point of reference, SQLightning (SQLite adapted to use libmdb)
performs random inserts ~21x faster than vanilla SQLite. So it's not just
faster for reads.