Ok Thanks Evan, I read docs and got something going for the time
being.
 Hopefully you could also put in something to select fields, the
way you can do with graph_select. That would be extra gravy though.
 Thanks.
 ~Dan

On Sep 18, 2:03 pm, Jeremy Evans <[email protected]> wrote:
> On Sep 18, 12:14 pm, daniel_spaniel <[email protected]> wrote:
>
> > Hi
> >  I have been using eager_graph for a while, but after a while I
> > started to wonder if using eager would be faster, since I am not
> > really filtering on associated tables. By default eager things there
> > is a primary key called id.
> >  But I have composite keys. With eager_graph, I use the
> > graph_only_conditions to set up the join association look up with my
> > composite keys. How do I do that with eager? I did not see an option
> > called eager_conditions.
>
> You have to create a custom :eager_loader to handle composite keys
> currently.  Take a look at the Advanced Associations page (http://
> sequel.rubyforge.org/rdoc/files/doc/advanced_associations_rdoc.html),
> it has a composite key example (see the "Joining on multiple keys"
> section).
>
> Adding composite key support for the default associations is planned
> for the future, it'll probably make it into 3.6.0.
>
> Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to