It seems you are interested in lazy loading, right?

For example, if Steps is lazily loaded, you can do Case.FindAll()
without having them loaded unless you access Case.Steps.
http://castleproject.org/activerecord/documentation/trunk/advanced/tuning.html#lazyload
http://castleproject.org/activerecord/documentation/trunk/usersguide/lazy.html#lazyrelation

For further reducing queries in a BelongsTo (such as Case.Author), you
can do either eager loading or lazy loading:
http://castleproject.org/activerecord/documentation/trunk/advanced/tuning.html#relations%20and%20eager%20loading
http://castleproject.org/activerecord/documentation/trunk/usersguide/lazy.html#lazytype

-Markus

2009/12/21 Pbirkoff <pbirk...@gmail.com>:
> Hi Mauricio,
>
> Thanx for your reply.
>
> I've read the sites you provided, but the problem with these examples
> is that they all are about retrieving one record, they always provide
> an ID.
>
> My problem is that I want all the case-objects, not just one. I think
> there's nothing left to do than to use normal SQL..
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" group.
> To post to this group, send email to castle-project-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> castle-project-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-us...@googlegroups.com.
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.


Reply via email to