Research performance cost of duplicate reads and implement a solution if necessary #1081
Labels
l:M
Solving the issue takes days
p:medium
Medium priority, this issue can wait but should be done fairly soon
t:enhancement
The issue described an enhancement
Storage overlay prevents the worst effects of double reads, but the official suggestion is still to avoid excessive use of this feature: https://substrate.stackexchange.com/questions/2574/clarity-on-storage-read-write-caching.
My suggestion is to use the following design:
You can even implement
Into<Lazy<MarketId, Market>>
forMarketId
. All helper anddo_*
functions should take a wrappedLazy
object.The text was updated successfully, but these errors were encountered: