Recipe 14.5. Sorting Large DBM Files
14.5.1. Problem
You want to
process a large dataset you'd like to commit to a DBM file in a
particular order.
14.5.2. Solution
Use the DB_File's B-tree bindings
and supply a comparison function of your own devising:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial