Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: db_del of BerkeleyDBby Corion (Patriarch) |
on Jun 10, 2016 at 06:35 UTC ( [id://1165269]=note: print w/replies, xml ) | Need Help?? |
The generic approach to make a database file smaller is to rewrite the file by copying all rows into a new file. Usually, databases don't release free space back to the file system but just mark it as "available for data" internally. It is often much faster to maintain this internal bookkeeping instead of rewriting the file each time a record in the middle of the file gets deleted.
In Section
Seekers of Perl Wisdom
|
|