dbm

Matthew Jones (matj@hchworth.demon.co.uk)
Thu, 23 Mar 1995 14:00:07 +0000 (GMT)

Help please!

I'm trying to create a simple database using the python binding to
dbm. It fails to enter records after a certain point. The error I get
is:

Traceback (innermost last):
File "./createdb.py", line 29, in ?
db[`entry_key`] = `entry`
dbm.error: Cannot add item to database

and the database file size is enormous. The databse seems to be
putting lots of null byte padding between records. I tried using the
gdbm module but couldn't find the gdbm.h file.

Why is the database growing at an alarming rate, is the inter-record
padding an error or typical?

--

Mat Jones matj@hchworth.demon.co.uk