Plans for eager loading for ActiveRecord in Subsonic 3?

Just curious if there are plans for eager loading using ActiveRecord in Subsonic 3. Is there a roadmap out there?

It seems like a pretty sweet library. Very similar to Rails but missing a few sweet spots.

Answers


There's a couple of ways to do this right now - the first is to create partial of the generated class and create a new constructor with a boolean flag for eager loading - or what might be better is to create a static factory method (Product.SingleEager(1)) that goes and loads what you need.

The second way is to tweak the T4 template to do this for you.

I don't have any plans to offer a config switch for this since its one of the more hotly debated issues - I'd rather put the power in your hands :)


Need Your Help

Delay loading an external swf on website first load (GAIA)

actionscript-3 gaia

I am using the Gaia Framework (AS3) to build my first flash website.

What is the role of the buried-buffer-list frame parameter in Emacs

emacs elisp

In emacs, I've read the following code snippet in simple.el: