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

Fix slow import #1061

Merged
merged 6 commits into from
May 3, 2018
Merged

Fix slow import #1061

merged 6 commits into from
May 3, 2018

Conversation

mkalinin
Copy link
Contributor

No description provided.

@mkalinin mkalinin requested a review from zilm13 April 27, 2018 09:59
Copy link
Collaborator

@zilm13 zilm13 left a comment

Choose a reason for hiding this comment

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

Looks good!


# defines a number of opened files by db instance
# this number has significant impact on read amplification
# on the other hand it can force exceeding of user's limit, OS usually set it to 1024
Copy link
Collaborator

Choose a reason for hiding this comment

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

OS usually set it to 1024

+ "for all applications


public static final DbSettings DEFAULT = new DbSettings();

int maxOpenFiles = 32;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add 2 more vars as statics above and assign here from them?
Don't like a way magic constants are passed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree. Don't like them either :)

@mkalinin
Copy link
Contributor Author

mkalinin commented May 2, 2018

@zilm13 ready to be merged after the review

@zilm13
Copy link
Collaborator

zilm13 commented May 2, 2018

@mkalinin to be clear, LevelDB has options.maxOpenFiles() too. Everything else looks cool!

@zilm13 zilm13 merged commit 4fc7c14 into develop May 3, 2018
@mkalinin mkalinin mentioned this pull request Jun 14, 2018
@mkalinin mkalinin deleted the fix/slow-import branch December 26, 2018 06:35
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.

2 participants