Skip to content

Accessing database statistics when opened via committed transaction #176

@DecoyFish

Description

@DecoyFish

When updating to the latest release, I noticed the *.Handle() methods were removed. It's totally reasonable to abstract these potential foot-guns. However, our project was previously using these to fetch DB statistics (via Lmdb.mdb_stats) for DBs that were opened in a committed transaction (and then reused by later transactions). The open/reuse case is similar to this test:

public void DatabaseFromCommittedTransactionShouldBeAccessible()

In the spirit of the recent change, I'd like to add a method to LightningTransaction like:

public Stats GetStats(LightningDatabase db) {...}

PS: Thanks for for the updates on and active maintenance of this project

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