You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps we could introduce lock striping either at this level or in a layer below this. The rationale being:
Assumption is that some block queries are random, therefore may not be hitting blocks that may have high contention (for example the latest n blocks) where n refers to the sync limit that we can rebranch to. Therefore we do not necessarily have to acquire a write lock to the whole object. Merely a write lock to the last 128 blocks. Processes that want to access older historical blocks are still free to do so.
We can tune this to our API requirements, for example, the API has a method that scans the last n blocks within a block range looking for events.
Suggested by @qoire in #300 as follows:
The text was updated successfully, but these errors were encountered: