Skip to content

Conversation

@dimazhornyk
Copy link
Contributor

What ❔

This PR adds a migration that creates an index on ratio_timestamp field of base_token_ratios table.

Why ❔

Queries to this table are currently much heavier than they should be, that has to be optimized.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@dimazhornyk dimazhornyk added this pull request to the merge queue Jan 6, 2025
Merged via the queue into main with commit ab6231d Jan 6, 2025
33 checks passed
@dimazhornyk dimazhornyk deleted the dz-add-ratio-timestamp-idx branch January 6, 2025 18:26
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