Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Improved performance for batch add & update #28

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

graphee-gabriel
Copy link
Contributor

Modification of the add(List objects) and update(List objects) functions.
Instead of calling the add(Object object) which was opening and closing the database on each object, we are now opening the database and beginning the transaction once, and closing it after all the objects were inserted.
I tried the change on my data set. Before It was taking me more than 1 minute to add all the data set in the database. After the modification it takes me now not more than 1 second.

Modification of the add(List<Object> objects) and update(List<Object> objects) functions.
Instead of calling the add(Object object) which was opening and closing the database on each object, we are now opening the database and beginning the transaction once, and closing it after all the objects were inserted. 
I tried the change on my data set. Before It was taking me more than 1 minute to add all the data set in the database. After the modification it takes me now not more than 1 second.
@florent37 florent37 merged commit d9ba753 into florent37:master Feb 9, 2017
@florent37
Copy link
Owner

thanks for it 👍 will send a new version

@graphee-gabriel graphee-gabriel deleted the patch-1 branch February 9, 2017 16:36
@graphee-gabriel
Copy link
Contributor Author

Great, you're welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants