Categories
Cryptocurrency Ethereum Mastering Development

Creating complex queries from events emitted by a smart contract

I need to create complex queries from events emitted by a smart contract.
For example, I need to make a kind of “sql join” between data from different events.
I know a simple solution would be to keep a separate database, store all emitted events there and them make all queries from this database. But this solution has two main problems (a) it is centralised and (b) it demands me to keep a database “manually”.
Is there a clever option to this problem? I understand that it would be difficult to have a decentralized solution to that, but I would like to at least improve problem (b).

Leave a Reply

Your email address will not be published. Required fields are marked *