-
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
Value Size Limit #60
Comments
We haven't set any value size limits. 2mb should be alright. |
@manishrjain looks like I'm hitting this error - panic: Value with size 2346630 exceeded 1048576 limit. Value |
@kotyara85 , with the default options, limit on value size is set to 1MB (1048576B). To increase the threshold, please set the value of 'ValueThreshold' parameter in Options to a higher number. opts := badger.DefaultOptions(path) Let us know if this works/doesn't work for you, or you need any other details around this. |
@pandeyshubham25 yeah, tried that already
Sounds like a bug |
@kotyara85 . I managed to look into Badger's code, Open() enforces ValueThreshold to be smaller than maxValueThreshold, a value that is maintained internally and cannot be changed by the client at the moment. This means that you cannot have value sizes in excess of 1MB for now in the LSM tree. You can still insert values of larger size but they would inevitably go to ValueLog. |
This should be re-opened if still an issue. Also interested on the outcome. |
Is there a hard coded value size limit for badger?
Since badger saves keys and pointer to values, it seems it would not have problems with a large value size - say 2 MB.
The text was updated successfully, but these errors were encountered: