Hey there.
I’m building a canister that includes both stable memory (ic-stable-structures
), and heap (serialized into/from stable-memory via pre and post-upgrade hooks). My plan is to serialize into an unused page range during these update hooks. My questions relate to how stable memory is charged.
-
Is it charged only related to the number of pages used(for on-going storage)/written to(for memory access during one call)? If I use pages [0…10, 10000…10010], do I get charged for 20 pages or 10010 pages?
-
If I subsequently zero out pages [10000…10010], how much do I get charged for storage afterwards?