Using Metrics
Use metrics if you want to:
- calculate some statistics over the results
- aggregate the results in a smaller set
Adding metrics make the query aggregate query, and it will return results, grouped by dimensions. Look Query Aggregated Metrics for details.
tip
Consider using metrics in every query to the archive database
note
Metrics can be also used in subscriptions, refer to Subscription on Aggregated Metrics for details.
Build with Bitquery
Ready to run this in production?
Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.