On 06/09/2005, at 4:59 AM, Julian ''Julik'' Tarkhanov wrote:
> Well, there I am - made a number of associations and a "list
page"
> which lists the top-level objects.
>
> Now I look at my production log and happily see about 200 SQL queries
> per page. How can I fight this in a reasonable way?
> I am listing the top-level objects which have about 4 relationships
> each. How do I prevent the associations from loading (assuming I
don''t
> call the associated collections anywhere - not in the controller and
> not in the view)
AR associations *are* lazily loaded from the db. Maybe some other
non-view code is accessing them?
-- tim lucas