Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: db_del of BerkeleyDB

by Corion (Pope)
on Jun 10, 2016 at 06:35 UTC ( #1165269=note: print w/replies, xml ) Need Help??


in reply to db_del of BerkeleyDB

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1165269]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-01-23 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?