> From: "Akmal Sarhan" <[EMAIL PROTECTED]>
> 
> thank you Scott for the answer, still the question is why does the save()
> method iterate through "all" the old cars to save them,having in mind that I
> add a new Car entry to an Agent that already exists i.e I only update it by
> adding the new Car, and if this Agent already has, say, 1M+ Cars, so I think
> you might get my point about the performance issue.
> 
> best regards
> Akmal

The problem is that even though you may save the new Car directly, any
change to the Agent that requires a save() is going to iterate through the
1M+ rows.  You are talking a really extreme example (yesterday you were
happy to talk 1000, but today you want to talk 1M+), one where you would no
doubt review and overload the default save() (and other) method(s) in order
to cope with such large volumes.

I think it would be reasonably easy to break most persistence frameworks
using an extreme examples such as this.

Cheers,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to