Skip to content

LMDB write throughput limitations when rescanning large numbers of accounts #183

@Shadowfoxd

Description

@Shadowfoxd

I’ve been testing Monero LWS back-end and noticed some performance bottlenecks related to LMDB’s write limitations.

Observed Behaviour

LWS workloads involve frequent blockchain rescans and wallet updates across thousands of accounts.

Since LMDB only supports a single writer transaction at a time, high-volume re-scanning causes writes to queue up and slow down significantly.

With ~10,000+ accounts, re-scanning throughput drops drastically compared to expected performance.

Questions

Are there recommended best practices for tuning LWS + LMDB for frequent writes (like re-scanning thousands of accounts)?

Would introducing write batching, delayed commit strategies, or alternative back-ends (e.g., RocksDB/SQLite or any alternatives ) help in practice?

Has there been any bench marking or consideration of LMDB alternatives for high account-count workloads?

Thank in advance

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