Hi,

I am new on perl, and I have a problem with dbm files.

When you insert a key/value into a DBM and that pair already exists:
 if the value is less than or equal to the existing value, the
 space is reused,
 else new space is allocated and the old space is not reclaimed.

The delete() function does not help at all. If you loop over a DBM and
delete all key/values, and then replace them with the same pairs, there
is
no change in the file size.

However if you delete all pairs, close the DBM and reopen it and
reinsert
all key/value pairs, the DBM file size doubles.

If you delete all pairs and insert new ones with slightly larger value
sizes you more than double the file size.

In a few words, the dbm file size grows and grows.

Any suggestions about it?

Thanks in advance


_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to