One of the fastest embeddable key-value ACID database without WAL. libmdbx surpasses the legendary LMDB in terms of reliability, features and performance.
The main problem is that the legacy API (with which you need to maintain compatibility, because it is used somewhere) did not use a transaction, i.e. the mdbx_env_stat() does not accepts a transaction in the parameters.
Therefore, it is only possible to get the snapshot information from a meta pages, but not to total across all the subDB(s).
Oh, I remember the whole story.
The main problem is that the legacy API (with which you need to maintain compatibility, because it is used somewhere) did not use a transaction, i.e. the
mdbx_env_stat()
does not accepts a transaction in the parameters. Therefore, it is only possible to get the snapshot information from a meta pages, but not to total across all the subDB(s).It's time to think about how to fix it.