[Pkg-db-devel] DB_BULK flag

Rafael Almeida almeidaraf at gmail.com
Thu Mar 18 11:40:37 UTC 2010

On Wed, Mar 17, 2010 at 11:50 PM, Clint Adams <schizo at debian.org> wrote:
> On Mon, Mar 15, 2010 at 08:09:24PM -0300, Rafael Almeida wrote:
>> The DB->cursor function takes flags as its parameter, upstream documentation
>> says that one possible flag is:
>>       DB_BULK
>>       Configure a cursor to optimize for bulk operations. Each successive
>>       operation on a cursor configured with this flag attempts to continue on
>>       the same database page as the previous operation, falling back to a
>>       search if a different page is required. This avoids searching if there
>>       is a high degree of locality between cursor operations. This flag is
>>       currently only effective with the btree access method: for other access
>>       methods it is ignored.
>> Unfortunately that flag is not present in the header. I'm not sure if it's a
>> documentation error or header error. Anyhow, is that flag available under a
>> different name?
> I think DB_CURSOR_BULK is what that should say.

Ok, thanks. Looking at the header I suspected that it could be it.

>> By the way, why isn't there a package with upstream's API documentation. There
>> is manual pages on libdb in manpages-dev package. But they describe version 1 of
>> the database. Quite outdated.
> Do you mean db4.8-doc?

Oh great. I didn't know about that package, I kept looking for
libdb4.8-doc :P. I think I'll have a bug to report on it pretty soon

More information about the Pkg-db-devel mailing list