| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: berkeley DB, bulk data retrieval problem...
To Robert Mycek:
The question must be referring to "Sleepycat Software" and their implementation of the "Berkeley DB". See: www.sleepycat.com
So "dbc" should refer to a pointer to a "DB_cursor" - and "c_get" is a "cursor get" method or function invocation.
So, per: http://www.sleepycat.com/docs/api_c/dbc_get.html#DB_SET
The buffer to which the data argument refers should be large relative to the page size of the underlying database, aligned for unsigned integer access, and be a multiple of 1024 bytes in size.
The DB_MULTIPLE_KEY flag may only be used with the DB_CURRENT, DB_FIRST, DB_GET_BOTH, DB_NEXT, DB_NEXT_NODUP, DB_SET, DB_SET_RANGE, and DB_SET_RECNO options. The DB_MULTIPLE_KEY flag may not be used whenaccessing databases made into secondary indices using the DB->associate method.
Hope this helps,
-bob lee-
mailto:rbobleenospamataoldotcom
Robert Mycek wrote:
> Hi,
>
> I have a set of keys, and I want retrieve
> all data related to these keys.
> Is it possible to get all this data by call
> dbc->c_get function only once?
>
> Should I use DB_MULTIPLE_KEY flag?
> Any idea?
>
> thx for help
> rm.
>
>
>
Received on Wed Sep 18 2002 - 04:38:18 CDT
![]() |
![]() |