Potential parameters to be chose / Design criteria
Given sqlite, at what which point should the batch write cut off e.g. How long should write requests be collected for the ultimate batched write?
Given postgres,
TANSTAAFL, What are the fundamental tradeoffs with concurrent writes?
Given concurrent writes, there are possibly writes occurring when other actions are being taken by the daemon, how should the consistency be addressed after certain data has been timestamped by the bitcoin wallet backend.
What interactions are there with the MS-SMT tree level structure and SIMD processing that we might want to leverage for highly paralizable pocket universe load balancer design architectures?
I think let's target this at using the batched postgers queries for things like reading the SMT levels. I think we can modify the recursive call to fetch all the siblings at once.
Background
To prevent previous dysfunction, write locks were added in https://github.com/lightninglabs/taproot-assets/commit/b190d32087a3d579fbfca4cd06548d59d0b46694#diff-34ab0b3a4593407088a7516e921f22607e4237f236325db502804e33433327b2R303 which ultimately won't be necessary once #261 is fixed. After which, DB writes can be optimized with batched writes (sqlite) or concurrent writes (postgres)
Potential parameters to be chose / Design criteria
Given sqlite, at what which point should the batch write cut off e.g. How long should write requests be collected for the ultimate batched write?
Given postgres,
What interactions are there with the MS-SMT tree level structure and SIMD processing that we might want to leverage for highly paralizable pocket universe load balancer design architectures?
Related issues: https://github.com/lightninglabs/taproot-assets/issues/374