Hi, I have a question, about performance while working with LongRequest and many EO.
Here's the situation: I've prepared a class that extends ERXLongResponseTask.DefaultImplementation. In this class, I operate a database migration, over 10000 record. Each of them has, at least, 50/60 objects releated. From them, I create others objects, for a total of 60 new objects for each of the starting 10000 rows. The procedure works fine, but, I experience a difference in speed during the procedure. At first, 300-400 objects are processed in few seconds, then the procedure slow down until, from 5000, it processes about 7/8 objects in 5 seconds. The procedure is very simple: 1. Fetch all objects in a NSArray 2. Manipulate each object in a for loop, fetching related objects and creating other objects in every iteration. I use just one EOEditingContext, so, I think the slowness begin when it became really full of elements. I would like to know, if there is a way to "clean up" the manipulated objects from the EC, or if a different approach is preferred. One last thing: it is good to use a NSArray of 1000 object in the for loop to do this? I ask this because, I fetch all the objects and save them in memory using EOObject.fetchAllObjects(EC) method from the class. Thanks in advance! Daniele C.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
