We are developing an application where we want to store the data of the user on the ethereum blockchain. My thought process is something like this
I want to know if there is a better way to do this.
As storing in Blockchain is costly operation you can store the data in oracle db and store the rowhash(I recommend sha256()) to the blockchain.
mapping (uint=> byets32) dataHashById;
Now whenever you fetch the data from db, you have to make hashing of that row and verify against the hash from blockchain. Thats it.