Speeding up the ibm_db2 adapter
If you would like to speed up the current 1.1 version of the adapter included in the Starter Toolkit for DB2 on Rails, you can replace the ‘tables’ and ‘colums’ methods from within the ibm_db2_adapter.rb file, with this code here.
This change will allow you to significantly boost your performance level when working with Rails and DB2. As you may note, the crucial change here relies on the fact that a slow driver call is replaced with an ad hoc query to the SYSCAT.
Naturally this will be included with the next toolkit release, which will be out soon.
August 21 2006 | Tips&Tricks | Comments Off
on Rails
