I have two approaches to save data on blockchain, but I don't know which one is the best from time as well as space complexity perspectives. I want to store key value pairs in a table.
First Approach: save each key value pair in their own respective rows in the table and iterate over them for updating.
Second Approach: create only one row in the table, which holds a hash map containing the key value pairs.
assume that the data being stored is relatively big (may exceed 10000 key value pairs).
thanks in advance.