subsocial-solochain
subsocial-solochain copied to clipboard
Move most of storage items that return Vec-s to offchain worker DB
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.