Saturday, November 11, 2006

Ruby/Informix 0.2.1 released

This is a minor release after 0.2.0 that replaces calls to free() with xfree() to avoid crashes on Windows XP SP1.

I missed the announce of Ruby/Informix 0.2.0 which basically got new handy methods to fetch and iterate over records:

fetch_hash_many(n), fetch_hash_all
Fetch records as hashes. fetch_hash_many fetches n records at most, fetch_hash_all fetches all records as hashes. Both return an array.

each_by(n), each_hash_by(n)
Iterate by n records at a time.

fetch!, fetch_hash!, each!, each_hash!
Work the same as their counterparts without the "!" sign, except that these ones reduce the creation of objects, reusing the same ones in each call, which make them faster and memory savy.

I'm looking forward now to implement Smart Large Objects, which may help me with the ActiveRecord adapter.

No comments: