Somewhat noob question:
I see the term storage cell talked about a lot on here (mostly regarding Mapping
and Lazy
), however I cannot find any documentation about it.
What exactly is a storage cell?
Are they a set size? If so what is the size? Does the size vary based on individual pallet implementation?
Is there any way to access the size of a storage cell in ink
?
What happens if a storage cell's size is exceeded? Is the data split across two cells instead?
I assume a storage cell is a record in a database on a node, is that correct?
Assuming storage costs are proportional to the number of records used in the db by a smart contract, it would be handy to know the size of the storage cells so I can optimise the smart contract storage accordingly.