-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
using BadgerDB: DropCollection returns a "Txn is too big to fit into one request" #147
Comments
Hey, @willie68, the quickest option I see is to delete documents in batches inside |
Thank you for the fast feedback. First I tried bbolt. But I already failed at Query. Just a simple search with PS.: Just found the problem of time queries in bbolt. But the performance issue remains. |
我曾经用BadgerDB,bblotdb,pepperDB,leveldb处理过500万量级的数据,除了leveldb,其它都有各种各样的问题 |
I just do a simple test. Importing 1.000.000 simple documents and than i call DropCollection.
The error "Txn is too big to fit into one request" returns.
I think the error comes from the Clover DropCollection Implementation, which simply tries to delete all documents in one BadgerDB transaction. However, BadgerDB transactions are limited. In my case, the end is around 35,000 documents.
Specifically, this is 15% of the table size.
For more information: dgraph-io/badger#1325
The text was updated successfully, but these errors were encountered: