• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Performance in many objects manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance in many objects manipulation


  • Subject: Re: Performance in many objects manipulation
  • From: Mark Wardle <email@hidden>
  • Date: Thu, 10 Mar 2016 16:13:44 +0000

Yes. I have just checked and found ERXFetchSpecificationBatchIterator in er.extensions.

Mark
On 10 Mar 2016, at 10:51, Daniele Corti <email@hidden> wrote:

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Performance in many objects manipulation
      • From: Daniele Corti <email@hidden>
References: 
 >Performance in many objects manipulation (From: Daniele Corti <email@hidden>)

  • Prev by Date: Re: Performance in many objects manipulation
  • Next by Date: Re: Performance in many objects manipulation
  • Previous by thread: Re: Performance in many objects manipulation
  • Next by thread: Re: Performance in many objects manipulation
  • Index(es):
    • Date
    • Thread