BSDDB Pack function?
Robin Dunn
robin at alldunn.com
Wed Feb 16 17:59:22 EST 2000
"Robert Roy" <rjroy at takingcontrol.com> wrote in message
news:38aa0248.419826718 at news1.on.sympatico.ca...
> (from Robin's Reference Guide)
>
> ref B-Tree dbs
>
> Space freed by deleting key/data pairs from the database is never
> reclaimed from the filesystem, although it is reused where possible.
> This means that the btree storage structure is grow-only. If
> sufficiently many keys are deleted from a tree that shrinking the
> underlying database file is desirable, this can be accomplished by
> creating a new tree from a scan of the existing one.
>
If you built the utilities in the Sleepycat DB package then you also have
db_dump and db_load which can do a database rebuild for you.
--
Robin Dunn
Software Craftsman
robin at AllDunn.com
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/ Check it out!
More information about the Python-list
mailing list