Boost logo

Boost Users :

Subject: Re: [Boost-users] Backend of multi_index container
From: Anaswara Nair (anaswara.nn_at_[hidden])
Date: 2016-06-27 00:27:41


I have 7 fields in each record,two strings and five 64 bit integers. Of
these,one of the integers is unique. I need to store all such records into
the DB. In multi-index, I have a structure and this structure is being
indexed by that integer value. If I have to similarly create a structure
and store it as the value in LMDB, then what is its difference from
multimap? I can do the same in multimap also. Then how does LMDB become a
database.

On Fri, Jun 24, 2016 at 7:43 PM, degski <degski_at_[hidden]> wrote:

> On 24 June 2016 at 15:51, Anaswara Nair <anaswara.nn_at_[hidden]> wrote:
>
>> I have gone through LMDB. However AFAIK LMDB stores the
>> data as a key-value pair.
>>
>
> Yes, it's a key-value store.
>
>
>> Though duplicate keys are allowed, I couldn't find
>> any relation between these entries. I couldn't understand its use as a
>> database as well.
>>
>
> It's like std::(multi)map, maybe the wikipedia entry
> <https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database> helps.
>
>
>> Can you provide some help so that I can go deeper into this.
>>
>
> In your original question, you refer to having one unique ID and some
> related data per record. Maybe you could expand a bit on what you would
> like to achieve.
>
> degski
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
WITH REGARDS,
             ANASWARA


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net