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

Optimise Hibernate Settings #532

Open
arya-hemanshu opened this issue Mar 15, 2018 · 1 comment
Open

Optimise Hibernate Settings #532

arya-hemanshu opened this issue Mar 15, 2018 · 1 comment

Comments

@arya-hemanshu
Copy link
Contributor

Description

Currently all the hibernate options are set to default and it would be good if we could change a few of them to boost the performance of DC and to get the best out of Hibernate.

e.g.
In FixedValueUtils.java we are flushing every 20 records, however we are not setting batch_size anywhere to 20, and jdbc default batch size is 5.

If we up the batch size to 1000 and flush every 1000 records it will noticeably improve DC's performance, in some cases 3 times faster.

But that also means that incase transaction fails we loose 1000 records, instead of 5. Thus need to take care of all those scenarios as well.

Error log

NA

@lorenaqendro
Copy link
Contributor

Consider the changes introduces by #552 changing the batch size to 50.

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

No branches or pull requests

2 participants