All Questions
Tagged with remove-all map
2 questions
1
vote
1
answer
149
views
When to use StorageDoubleMap `clear_prefix` vs `drain_prefix`?
Hey Substrate community,
there are two different methods to remove multiple items for one specific first key from a StorageDoubleMap. There is clear_prefix and drain_prefix. clear_prefix provides ...
12
votes
1
answer
74
views
Multiple remove_all calls in same block
I stumbled upon an unexpected behavior when doing storage migration.
Problem Description
I want to clean-up a large DoubleStorageMap in multiple steps.
And that works just fine, however I also want to ...