multi-indexed tdb

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Aug 7 05:20:18 GMT 2006


On Sun, Aug 06, 2006 at 08:11:17PM -0400, simo wrote:
> In other cases it may be really interesting to have something that
> resembles an index instead, where a single secondary key can link
> multiple primary keys.

This code was designed for the three cases groupdb, passdb
and idmap. And I wanted the code to be as simple as
possible. Right now I do not have an application which
would want multi-keys.

What cases do you have in mind here? Do you want to build
ldb on top of this?

> Another question is why do you use a numeric index instead of just
> another char prefix?
> I think that something like KEY/USER/BLAH is more readable then
> KEY/1/BLAH

I had this code done, but with just integers the code was
considerably simpler than with strings, and code simplicity
in this case was more important for me.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060807/3ecd271a/attachment.bin


More information about the samba-technical mailing list