[pybsddb] Bulk Data load into a DB

Joepaul Puthenangadi joepaulp at yahoo.com
Fri Mar 26 23:38:01 CET 2010


Hi there,

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.?

Again thanks a lot for the wonderful module.

Thanks again

#Sample code

from bsddb3 import db

db1 = db.DB()
db1.open("Temp.db")

keys = ('key1','key2','key3')
val = ('10','15','20')

db1.put(keys, val, None, DB_MULTIPLE)
        
db1.close()

###
This did not work. Any thoughts.?

Thanks



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20100326/1ad9d473/attachment.htm>


More information about the pybsddb mailing list