-
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
Txn is too big to fit into one request #441
Comments
You can stop adding more keys and just commit the transaction. A single txn can't be too big, which is what the error is indicating. |
@manishrjain Thanks and sorry. |
No worries, mate! |
I'm running into this issue too. What is the recommended txn size? |
Badger would tell you when the txn size is too big by returning that error. In general, a txn should not exceed the size of a single memtable. |
What's the right way to determine that error has occurred? From what I can see the error returned is |
Line 38 in a6f0866
This is the error that gets returned. It is exported. Here's the documentation around retrying: https://github.com/dgraph-io/badger#read-write-transactions |
Ah, thank you!!! |
I am trying to insert one million register but I got this error: Txn is too big to fit into one request
How can I solve this?
This is my code.
The text was updated successfully, but these errors were encountered: