Open morteza102030 opened 1 year ago
What size of strings are you trying to use? By default, the maximum key size is 1978 bytes. Curious if this is an issue with strings that should be handled, or poor error reporting for larger strings that should be rejected.
my string is random 1 to 4000 characters
I will look into improving that error, but those strings will be too large to use as keys with the default setting. However, I believe you should be able use 4000 character strings (as long as they one-byte UTF8, not more than 4026 bytes) if you set the pageSize to 8192 (requires recreating the database).
sometimes when db.get(String) i receive this error
Unhandled Rejection at: Promise Promise {