Re: Spring light integration

2007-11-14 Thread Malcolm Edgar
That is all you should need to do. regards Malcolm Edgar On Nov 14, 2007 11:52 PM, Landry Soules <[EMAIL PROTECTED]> wrote: > Thanks Malcolm. > > I already set my web.xml this way : > > >CayenneFilter > >org.apache.cayenne.conf.WebApplicationContextFilter >

Re: Batch faulting with Cayenne 3

2007-11-14 Thread Andrus Adamchik
The code below should work. Another way is to use multi-step prefetching on a root of to-many relationship. Now, it would still be cool if we could have batch faulting for the odd places where we didn't set up the prefetching. While I used batch faulting in webobjects days and found it quit

Re: Batch faulting with Cayenne 3

2007-11-14 Thread Alexander Lamb (dev)
Well, yes it is possible up to a point. Usually it is through the "to-many" relationship I get my objects. Some other times it might be through a custom query meaning I have to do it each time. However, as I said in the second email I sent about prefetching, the solution is maybe the foll

Re: Batch faulting with Cayenne 3

2007-11-14 Thread Andrus Adamchik
Can you use prefetching instead? You got a list of users vis some sort of query - just add prefetch to that query. Andrus On Nov 14, 2007, at 8:11 AM, Alexander Lamb (dev) wrote: Hello list, One thing is killing performance of our application: it is the resolving of individual to-one fau

Prefetching to-many relationships with Cayenne 3

2007-11-14 Thread Alexander Lamb (dev)
Hello list, Again, about my performance issues. To avoid thow round trips to fetch to-one relationships, we found a temporary solution but it doens't seem quite perfect. We override the get-to-many relationship in the following way: @SuppressWarnings("unchecked") public List getRoles () {

Batch faulting with Cayenne 3

2007-11-14 Thread Alexander Lamb (dev)
Hello list, One thing is killing performance of our application: it is the resolving of individual to-one faults in lists. For example, we can have 200 roles each refering to a person. When we loop through the roles, for each role where we do a role.getPerson() there will be a return trip

Re: Spring light integration

2007-11-14 Thread Landry Soules
Thanks Malcolm. I already set my web.xml this way : CayenneFilter org.apache.cayenne.conf.WebApplicationContextFilter CayenneFilter /* Is there something else to declare ? Thanks for your help. Landry Malcolm Edgar a écrit : H