-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.