Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue - batching #274

Open
jphribovsek opened this issue May 23, 2014 · 5 comments
Open

Performance issue - batching #274

jphribovsek opened this issue May 23, 2014 · 5 comments

Comments

@jphribovsek
Copy link

We have a use case where we batch import simple objects (5-6 string attributes) in the app from a CSV.
The import loop insert objects in core data, and we save the context only once all objects have been inserted.

  • If we ran another device to test syncing performance, it takes about 10 min for changes to make it through
  • We also use the REST apis to count the number of objects on the server on a regular basis, and observe around the same time to complete the upload

Based on those observations, the bottleneck seems to be on the uploading side.

@chengfred
Copy link
Contributor

How many objects?

@jphribovsek
Copy link
Author

sorry, I forgot that piece: 10,000

@chengfred
Copy link
Contributor

Can you give more details about the use case? (Will there be 10k objects created for every user?, how often? etc)

Some background, we aren't really optimized for the many (more than a few thousand) object case, though it should probably be faster than 10min.

@jphribovsek
Copy link
Author

In our first implementation phase, only part of our users would have that use case of importing large number of objects at once. Eventually though, we plan on syncing numerous entities, some of which would have thousands of objects to sync.

@CapoChino
Copy link

Yup, this is the exact issue I observed and filed in #208. Jorge improved things by batching, and I think I can live with/work around the current performance, but I too would love to have uploading happen a lot faster. 👍

@jleandroperez jleandroperez modified the milestones: v0.7.8, v0.7.9 Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants