Skip to content

using BadgerDB: DropCollection returns a "Txn is too big to fit into one request"  #147

@willie68

Description

@willie68

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: hypermodeinc/badger#1325

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions