-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
In-memory mode creates physical tables (in the current directory) #1374
Comments
Hey @damz I think this is happening because there isn't any check handling the case when InMemory is true but KeepL0InMemory is false. This causes badger to flush L0 on disks. This scenario is happening here. Lines 772 to 779 in dd332b0
@ashish-goswami, is this intended? I guess there are two ways to handle it
|
Indeed, the easiest fix would be to make this check Lines 1023 to 1029 in dd332b0
|
Wouldn't the solution provided result in inconsistency in logic. For example here Lines 191 to 195 in dd332b0
KeepL0InMemory==false but actually L0 is in memory. These are my proposed solutions -
I would love to submit PR for this |
Approach 1 would mean the user has to set two options to enable
This would result in the least amount of changes. Let's go with this approach. |
It looks like the in-memory mode creates physical tables in the current directory. This is because
*DB.handleFlushTask
does not seem to have a special case for the in-memory mode.Steps to Reproduce the issue
go test .
and watch SST files being created and destroyed in the current directory.The text was updated successfully, but these errors were encountered: