Open artob opened 9 years ago
Nice work. I'll give it a go - thanks :)
Jim On 24 Apr 2015 02:58, "Arto Bendiken" notifications@github.com wrote:
Note that there is now an up-to-date, actively-maintained, and comprehensive [C++11 wrapper for LMDB (https://github.com/bendiken/lmdbxx) with RAII semantics, in case it might be helpful in your project.
— Reply to this email directly or view it on GitHub https://github.com/jvanns/verbatim/issues/1.
I've begun work on porting verbatim from glim to lmdb++
:+1: Hit me up if you should run into any trouble or have questions.
Thanks Arto. I've not yet had a chance to read lmdb documentation... But I have read the headers! I'm running into problems re. The environment map size being exceeded? I can't seem to find a valid flag to increase it... Nor do I yet know why I need to ;) If you know off hand what the problem is could you let me know otherwise I'll read the lmdb docs when I'm near a computer and have more time!
Cheers
Jim On 16 May 2015 12:36, "Arto Bendiken" notifications@github.com wrote:
[image: :+1:] Hit me up if you should run into any trouble or have questions.
— Reply to this email directly or view it on GitHub https://github.com/jvanns/verbatim/issues/1#issuecomment-102613546.
LMDB has a very small default map size (10 MB, I think), so every app needs to explicitly set a larger one. The map size is also the maximum size of the database, so make it large enough...
What you want is lmdb::env#set_mapsize()
, which is a wrapper for mdb_env_set_mapsize()
.
Ah ha! Bingo! Thanks very much. I was looking for a flag when opening or creating the environment.
Thanks for your help!
Jim On 17 May 2015 11:32, "Arto Bendiken" notifications@github.com wrote:
LMDB has a very small default map size (10 MB, I think), so every app needs to explicitly set a larger one. The map size is also the maximum size of the database, so make it large enough...
What you want is `lmdb::env#set_mapsize() http://lmdbxx.sourceforge.net/0.9.14/classlmdb_1_1env.html#afc6ec6e8a406dcf26b49de325865700d .
— Reply to this email directly or view it on GitHub https://github.com/jvanns/verbatim/issues/1#issuecomment-102780229.
Note that there is now an up-to-date, actively-maintained, and comprehensive C++11 wrapper for LMDB with RAII semantics, in case it might be helpful in your project.