⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Fix unique query with no app buckets#624

Merged
raymondjacobson merged 2 commits intomainfrom
rj-aggregate
Jan 26, 2026
Merged

Fix unique query with no app buckets#624
raymondjacobson merged 2 commits intomainfrom
rj-aggregate

Conversation

@raymondjacobson
Copy link
Member

https://api.audius.co/v1/metrics/aggregates/apps/month/unique?bucket_size=day
only shows an app once, fix the aggregate logic so that it shows limit=Y apps per date bucket

Copy link
Contributor

@dylanjeffers dylanjeffers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so max 1000 apps per bucket? and how many buckets can be returned?

@raymondjacobson
Copy link
Member Author

so max 1000 apps per bucket? and how many buckets can be returned?

number of buckets is dictated by the query

https://api.audius.co/v1/metrics/aggregates/apps/month/unique?bucket_size=day

since the size is day and this is a month of data, we get 30 buckets.

so we end up getting top limit/30 apps per bucket.

can always increase this, but probably okay for now

@raymondjacobson raymondjacobson merged commit d96f98e into main Jan 26, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the rj-aggregate branch January 26, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants