graphprotocol / graphprotocol/graph-node
[Feature] Allow custom windows for aggregations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Description
Right now, aggregations only allow building hourly and daily statistics. It would be good to allow custom windows like 7 days or 6 hours.
The one thorny thing with this is if windows become very short - that will create a lot of aggregates and therefore slow down both indexing and queries. For short windows, we'd need to investigate how much of a problem that might be.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests. Start by locating how hourly and daily aggregation windows are defined, then investigate the indexing and query cost of shorter windows; done means supporting custom windows such as 7 days and 6 hours with an understood performance impact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend, data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100