I like the preloading functionality in ActiveRecord. Can we expose an API option for it? I know it's important to be careful with adding AR options, but I believe that adding a :load option would complement the existing :include and :joins options as follows:
* :include names associations that should be eager loaded but may also be needed for sql references (e.g. in conditions, orders, etc.) * :joins names associations that are needed for sql references but should not be loaded * :load names associations that should be loaded but are not needed for sql references Comments and discussion appreciated! When I talked with Pratik in IRC, his concern was adding another explicit option when perhaps more intelligence could instead be applied to existing options. This is a case where it seems cleaner to add another option. Thoughts? -Lance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
