I'm investigating how to increase concurrency in terms of cosmos-sdk app. To my understanding, almost db access paths from cosmos store to db backend are serialized by mtx. I think it's not a good idea for performance. As a bottom layer of db access path, I'd like to remove mtx from prefixdb. (Please note that cosmos/iavlStore depends on this prefixdb). prefixdb wraps another tm-db instance and this another tm-db is already concurrency safe by CONTRACT. So, intuitionally, I think we could remove mtx from prefixdb. HDYT?
I'm investigating how to increase concurrency in terms of cosmos-sdk app. To my understanding, almost db access paths from
cosmos storetodb backendare serialized bymtx. I think it's not a good idea for performance. As a bottom layer of db access path, I'd like to removemtxfromprefixdb. (Please note thatcosmos/iavlStoredepends on thisprefixdb).prefixdbwraps anothertm-dbinstance and this anothertm-dbis already concurrency safe by CONTRACT. So, intuitionally, I think we could removemtxfromprefixdb. HDYT?