subsocial-solochain icon indicating copy to clipboard operation
subsocial-solochain copied to clipboard

Move most of storage items that return Vec-s to offchain worker DB

Open siman opened this issue 5 years ago • 0 comments

We have around 10 storage items that return Vec of ids, like replyIdsByPostIds. These vecs are not used in runtime logic and mostly consumed by the clients (for example Subsocial's UI).

By moving them to offchain we will speedup a read-time from DB and save the blockchain storage space.

By offchain DB, I mean the high performance key-value DB that is available to Substrate's offchain worker.

siman avatar May 06 '20 06:05 siman