aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

Clarify use case for hybrid storage #402

Open fulldecent opened 5 years ago

fulldecent commented 5 years ago

My project makes the following assertion about hybrid storage:

Best practice with Aion is to use key-value storage for everything except recursive call state and configuration options which apply to all onchain transactions.

Argument in favor is that static storage is loaded on every call and therefore it is wasteful to load unneeded data.

This is a strong assertion and I'm not authoritative to make it. If AVM agrees, please add this note to documentation (I will provide PR if invited) so I can reference the Aion documentation rather than me (some random guy)'s opinion.