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

Process intermediates in chunks for CoreDataBatchImportOperation #2

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

SamTTaylor
Copy link

Importing into core data in small amounts and saving regularly is much more performant when lots of relationships are being set up. This feature sets the default amount of objects processed at once by CoreDataBatchImportOperation to 1000 so it doesn't affect any existing implementations, and allows for a custom amount to be set through a new init.

Copy link
Contributor

@blork blork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any proof this does increase performance? In my testing it seems to have a minor impact, but perhaps with many nested relationships the benefit is more obvious.

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

Successfully merging this pull request may close these issues.

None yet

2 participants