[pybsddb] Bulk Data load into a DB
Jesus Cea
jcea at jcea.es
Mon Mar 29 19:54:43 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/26/2010 11:38 PM, Joepaul Puthenangadi wrote:
> Was reading through the documentation and found something on the oracle
> website about the possibility of loading bulk key and values into a hash
> or btree db using the flag = |DB_MULTIPLE. Not trying to be picky or
> anything just wanted to know whether that is something yet to be
> implemented to |bsddb3 module.?
pybsddb is fairly incomplete, yet. It is a work in progress.
DB_MULTIPLE is not supported, currently. In fact using it will crash the
application, corrupt memory, etc.
I will support "bulk" interface sooner or later, depending of "popular
demand" :). Are you demanding it? :))
The details are tricky because I want to support arbitrary iterators,
and I don't want to iterate twice over the data. And I need to iterate
twice to know the lenght of the data and allocate appropiate memory
size, trying to avoid "realloc()'s" in the process.
I have had this interface in mind for years. Implementation will be
"faster" if somebody demands it. I don't have personal need for it.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQCVAwUBS7DpYplgi5GaxT1NAQIwPwP/QuaTwXf8wR4hhESMRUjRQp0zCPFEKz1o
O2K7fN0mSWfEIW+wKl/yQxaRAMmDpbtTH+p6K9zQIyW7Yfppv/ZBfs+ChehU+KQw
jPOim3fF9eXlYn1+1/UDeVWFfV+U1RuBfxrgcxF27TF5WUuR5KOEopSD6qtJHkJt
fRQiGHa+8S8=
=H1FT
-----END PGP SIGNATURE-----
More information about the pybsddb
mailing list