Consensys / ethql

A GraphQL interface to Ethereum :fire:
Apache License 2.0
623 stars 85 forks source link

Request-scoped caching of web3 responses #37

Closed raulk closed 6 years ago

raulk commented 6 years ago

During the resolution of a single query, it's possible to incur in the same web3 request twice, which is wasteful. This could happen if the user selects the balances of all to accounts in all transactions from a block, where the same account could've been the recipient of two transactions or more.

Current thinking is to evaluate DataLoader's caching facility, as it appears to be local to single queries.