Archive

Archive for October, 2007

hamsterdb: release 0.4.7 (unstable)

October 10th, 2007

0.4.7. (a.k.a. the “Birthday Release”!) is a maintainence release. It has some bug fixes and performance gains, especially for (but not limited to) duplicate keys.

A new function was added – ham_cursor_get_duplicate_count - it returns the number of duplicate keys of an item.

Also, ham_close and ham_env_close now expect a second parameter (flags). Therefore you will have to change your existing code. If you call ham_close with the flag HAM_AUTO_CLEANUP, hamsterdb will automatically close all open cursors of the database. ham_env_close(env, HAM_AUTO_CLEANUP) will close all open databases. If this sounds too complicated, just look at the samples; they all use the new flag.

Finally, a new sample (env2.c) was added. It uses an environment to manage three databases – one for customers, one for orders, and a third database for the 1:n relation between customers and orders. It mimicks a typical SQL use case.

Here’s the changelog for the current release:
http://hamsterdb.com/dl/CHANGELOG-0.4.7.txt

The release notes:
http://hamsterdb.com/dl/RELEASE-NOTES-0.4.7.html

Everything else, including downloads, documentation and the new sample:
http://hamsterdb.com

chris Coding, hamsterdb, Libraries