this post was submitted on 29 Nov 2023
1 points (100.0% liked)
Ethereum
5 readers
1 users here now
Resources
- Website & Blog
- White Paper & Yellow Paper
- Documentation & Stack Exchange
- Learn Solidity
- Source Code on Github
- Bounty program
- Chat on Gitter
- Network Status & Gas Price Market
- List of DApps
- Meetups
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You'll only be able to do analytics on current data, or if you want historical data you'd need to start recording it and can only do historical data from that point on, unless you were to take past historical data from offchain and then save it to the smart contract.
All of this is a moot point though, because it would be prohibitively expensive and very unrealistic to do. Not to mention you'd probably run out of block space.
Ok thanks. Noob question. By doing this, how do you run out of block space?
It'd likely be a very large transaction and depending on how large of a dataset you're working with you can potentially fill up an entire block with that one transaction. Granted, in reality a transaction that size will probably never make it into a block unless you pay a good validator tip since it'd be more profitable to leave that transaction out and get MEV from a bunch of smaller transactions.
Ok thanks for your input.