[Dbix-class] prefetch and has_many?
Daniel Westermann-Clark
dwc at pobox.com
Fri Aug 11 04:09:26 CEST 2006
On 2006-08-10 18:27:00 -0700, George Hartzell wrote:
> The section on prefetch in DBIx::Class::ResultSet doesn't mention
> has_many as a valid relationship for use with prefetch, but the
> section in the cookbook says that you _can_ (emphasis their's) since
> 0.05999_01.
>
> In my flailing around, I can't make it work (I get complaints when
> calling $resultset->next about prefetching not being implemented for
> multi.
>
> So, it sounds like the bug is in the Cookbook pod?
No, prefetch works for has_many relationships. I don't know why it's
not listed in ResultSet; it's probably just an oversight.
Can you provide your relationship definitions, the search you're
trying, and the exact error message?
Thanks,
--
Daniel Westermann-Clark
More information about the Dbix-class
mailing list