in reply to tied hashed and deleting keys and their valeus
Space freed by deleting key/data pairs from a Btree or Hash database is never returned to the filesystem, although it is reused where possible. This means that the Btree and Hash databases are grow-only. If enough keys are deleted from a database that shrinking the underlying file is desirable, you should create a new database and insert the records from the old one into it.So chances are that DB doesn't blank the items, but just removes the references.
If deleting the hash doesn't work, did you try the object interface? You can do $db = tie %hash .... and later $db->db_del or something similar.
Hope this helps,
Jeroen
"We are not alone"(FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: tied hashed and deleting keys and their valeus
by skazat (Chaplain) on Jan 31, 2001 at 15:09 UTC | |
by jeroenes (Priest) on Jan 31, 2001 at 15:14 UTC | |
by Fastolfe (Vicar) on Jan 31, 2001 at 22:05 UTC | |
by extremely (Priest) on Jan 31, 2001 at 23:11 UTC | |
by skazat (Chaplain) on Feb 01, 2001 at 02:51 UTC | |
by jeroenes (Priest) on Feb 01, 2001 at 18:37 UTC |