-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix slow import #1061
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
@zilm13 ready to be merged after the review |
@mkalinin to be clear, LevelDB has |
No description provided.