Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user created_at index #4392

Merged
merged 2 commits into from
Nov 23, 2022
Merged

Add user created_at index #4392

merged 2 commits into from
Nov 23, 2022

Conversation

isaacsolo
Copy link
Contributor

@isaacsolo isaacsolo commented Nov 23, 2022

Description

getting latest user is really slow because of new latest entities change.
https://github.com/AudiusProject/audius-protocol/blob/main/discovery-provider/src/queries/get_latest_entities.py#L46-L47

creating index on both created_at and user_id for deterministic ordering.

Tests

Confirmed index scan on stage.

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

@isaacsolo isaacsolo merged commit 192776c into main Nov 23, 2022
@isaacsolo isaacsolo deleted the is-add-created-at-index branch November 23, 2022 00:14
isaacsolo added a commit that referenced this pull request Nov 23, 2022
* Add user created_at index

* lint
@SidSethi
Copy link
Contributor

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants