I am adding approximately 3 ~ 5 new entries into the mapping, while the old one will be obsolete after a week.
If the mapping grow larger, is it going to consume more gasses?
Is there a need for me to remove them since they are no longer needed.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You pass gas to store the value in the first place. There are no future charges for keeping the data there.
That said, you can get a gas refund for deleting the existing data. That can only offset gas used for a new transaction. So if you can manage to delete the old ones while adding the new ones in the same transaction, you'll save gas (and thus ether) by doing so.