[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Storing graph data structure with MDB_FIXEDMAP
- To: openldap-technical@openldap.org
- Subject: Storing graph data structure with MDB_FIXEDMAP
- From: Aris Setyawan <aris.sety@gmail.com>
- Date: Fri, 29 Nov 2013 20:56:01 +0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oLc8QsjnY5aGR9367vpegPAuV76EdwBckZqMWiLTIjM=; b=KQdr6qErR11rq6+fe3nw+FDU4Rc7m3PoQOHpZHLOoUHxmRlTFYC4FyaLVd9PJ3LtGy n1klRooXTdqF07eekwqCIcNsiIzhGNFeI44fw99tNqcnOh+ErCXl8AXkWQlz9w7ixm/B E3So0hU/lPS12C0Y5hCpco23ymEh7E3odDvRtsbnrWmdX/QXJ5pFmyNDmHQB+elvql9k SLnRW4dwW4eti5T3MhFMqkemVXuqb2JwTgGx1gLiHmhR3KwhwUvK0BwMRRo4Juc7WW9T r0kOkoycyaLL4Pzo+8zHxZ2ybtzU+bONBKo+vCj/lg21rgRgcsie4I6nUhqsD7gDqV9m c5yQ==
Hi,
I'm new in this list.
I plan to store graph data structure (vertex and edge) in LMDB. The
"edge" data value of a record will contain a pointer which is pointing
to the address of "vertex" data value. So, I must make it sure that
data value address is not changing during operation. According to the
doc, I can use MDB_FIXEDMAP.
And from the doc:
"... the memory map will always reside at the same virtual address and
pointers used to reference data items in the database will be constant
across multiple invocations. ..."
Spesifically: "... pointers used to reference data items in the
database will be constant ..."
Is this mean that I must allocate memory to write data using mdb_put
with MDB_RESERVE flag?