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 an index on prices #332

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Add an index on prices #332

merged 1 commit into from
Nov 29, 2024

Conversation

metaproph3t
Copy link
Member

Previously, we didn't have an index on (market_acct, slot_updated), which was making calls to get the current price - the price with the highest slot_updated - expensive. Some calls were taking as long as 5 seconds.

This adds such an index to make these calls cheap.

Previously, we didn't have an index on (market_acct, slot_updated),
which was making calls to get the current price - the price with the
highest slot_updated - expensive. Some calls were taking as long as 5
seconds.

This adds such an index to make these calls cheap.
@metaproph3t metaproph3t merged commit 97f8646 into staging Nov 29, 2024
1 check passed
@metaproph3t metaproph3t deleted the add-prices-idx branch November 29, 2024 22:59
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.

1 participant