Hello, Is there any way to connect mysql or any other database directly with a solidity smartcontract?
Mar 23, 2022, 11:40 AM
i think via oracle api
Mar 23, 2022, 11:42 AM
great, thanks bro
Mar 23, 2022, 11:43 AM
but only if you have a database which you don't want to lose your data? because blockchain itself is a verifiable and decentralized database already
Mar 23, 2022, 11:44 AM
Can a contract handle and store a huge quantity of data?
Mar 23, 2022, 11:48 AM
Yea thats my concerns also
Mar 23, 2022, 11:49 AM
why not use store the hash of the data by using IPFS
Mar 23, 2022, 11:50 AM
i think pancakeswap is a good example that yea, it can
Mar 23, 2022, 11:50 AM
very interesting
Mar 23, 2022, 11:51 AM
in theory you can store 2^261 bytes but in practice you can never get anywhere near that limit. As Vitalik points on in his post in that link the blockchain will cease to function before you reach that hard limit ;)
Mar 23, 2022, 11:52 AM
I must study a lot now, I have so many new things to do with blockchain. IPFS is new for me
Mar 23, 2022, 11:52 AM
its very powerful what blockchain can do, and yet on a simple way
yea that is interesting approach
you can't pass gas limit though , adding data is limited per transaction/interaction
Mar 23, 2022, 11:56 AM
The gas fees to store all the information would be very expensive
Mar 23, 2022, 11:56 AM
exactly
so normally applications which each user adds and handle its data is the best to work with.
Mar 23, 2022, 11:57 AM
In my case it's better to try IPFS
Mar 23, 2022, 11:58 AM
No u cant connect my sql directly with solidity u can use react js for connect database and using abi u can get all method which u mentioned in solidity contract
Mar 23, 2022, 5:36 PM