If I suppose I use a smart contract as a database, how much data can I store? speaking only of strings and integers, save them in contract data structures does it cost in addition to the gas used for the variable store?
The contract size must be a maximum of 24576 bytes, as also written in the yellow paper, but that refers to the weight of the contract code; the memory is represented as an array of 2 ^ 256 32 bytes slots, but can I really use all this memory?
If I have a contract with data structures that contain thousands of elements, when I update a variable and then change the status of the contract, how is the updating of this contract implemented on all nodes?
Making calls on a contract with lots of data saved in it has a higher cost?
Sorry for the many questions, I know that this type of operations are expensive, but I would like to understand how the smart contract memory is managed.