Displaying 1 result from an estimated 1 matches for "column_map".
Did you mean:
column_wrap
2006 Nov 06
2
Eager Finder SQL
...der a page. In some cases, I needed to go two or three
associations deep in a model and the SQL generated by ActiveRecord was
either inadequate or lead to huge result sets. My solution was to
create a mixin that allowed my to specify a :finder_sql option to the
find method. In conjunction with the :column_mapping option, I could
then have full control of the queries generated and reduce the number
and overhead of the queries needed to render a page.
Please check out my blog entry on it for a fuller description:
http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql.
Gregg Kellogg
--~--~------...