[email protected]
[Top] [All Lists]

multi-indexed tdb

Subject: multi-indexed tdb
From: Volker Lendecke
Date: Wed, 2 Aug 2006 23:22:14 +0200
Hi!

Attached find a trivial wrapper around tdb that might make
multi-indexed tdb files sane.

The idea is that for the modifying functions you provide a
callback function that creates a list of index strings out
of a record. Thanks to Jeremy for this good idea, I had
something more complicated in mind.

The tdb_multindex.c lib creates a random primary key for you
and sets the index records to that primary key under a tdb
transaction. That's basically the whole idea.

What's missing is tdb_reindex and tdb_traverse_indexed
skipping all the non-primary records.

The sample use in torture.c will certainly be expanded.

Thoughts?

Volker

Attachment: x.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>