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
Copy file name to clipboardExpand all lines: content/md/en/docs/build/runtime-storage.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,7 @@ You can use the FRAME storage data structures to read or write any value that ca
98
98
The storage module provides the following types of storage structures:
99
99
100
100
-[StorageValue](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageValue.html) to store any single value, such as a `u64`.
101
+
- Note: As a rule of thumb you will want to avoid storing values over 16KiB under one key (see [here]([https://github.com/paritytech/substrate/pull/3126#issue-468524837](https://github.com/paritytech/substrate/issues/2966#issuecomment-510087309)) for the original analysis of effect on storage size on timings in RocksDb).
101
102
-[StorageMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageMap.html) to store a single key to value mapping, such as a specific account key to a specific balance value.
102
103
-[StorageDoubleMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageDoubleMap.html) to store values in a storage map with two keys as an optimization to efficiently remove all entries that have a common first key.
103
104
-[StorageNMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageNMap.html) to store values in a map with any arbitrary number of keys.
0 commit comments