This content has been marked as final.
Show 4 replies
-
1. Re: Adding onto end of many in 1-m CMP/CMR
dsundstrom Aug 30, 2002 12:24 PM (in response to cyates)That is the way it works now. I remember there is a reason for this, but can't remember the reason right now; I'm still a little tired.
-
2. Re: Adding onto end of many in 1-m CMP/CMR
cyates Aug 30, 2002 3:48 PM (in response to cyates)Hard night/day?
-
3. Re: Adding onto end of many in 1-m CMP/CMR
dsundstrom Aug 30, 2002 5:41 PM (in response to cyates)Yep I closed 3 bugs last night at about 2 am.
Ok now I remember. You call User.getActivities() which causes the load. The code assumes that if you are getting the collection you plan on using it, which looks like a bad assumption in the light of this code.
When I rewrite this code next time, I'll think about your code. In the mean time, can you set the relation the other way arround:
ActivityLocal.create(blah,blah).setUser(user);
That should not cause a load, but I can't be certain. -
4. Re: Adding onto end of many in 1-m CMP/CMR
cyates Sep 2, 2002 5:35 AM (in response to cyates)OK. Hadn't thought of that :)
Thanks