Berkeley DB is a high performance database system initially developed in the early 1990s. It’s not an SQL driven database engine – it just stores data in key/value pairs – but BDB is very fast, available to use on most operating systems, and is dual licensed for open source and commercial use. It has several benefits to just using a flat file or a PStore: transactions, fine-grained locking, replication, and hot backups, for starters.
While Ruby bindings already exist for BDB, Matt Bauer has just released some all new shiny ones that are fast and easy to use. You’ll need to have Berkeley DB installed as a library on your system before you get started, of course. Read More