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

Custom entity queries to optimize frontend app GQL requests #383

Merged
merged 14 commits into from
Nov 8, 2022

Conversation

nikugogoi
Copy link
Collaborator

@nikugogoi nikugogoi commented Nov 7, 2022

Part of cerc-io/watcher-ts#191 and #292

  • Custom queries to get latest Pool and Token and UniswapDayData entities from table containing latest entities
  • Add index on timestamp for Transaction, Mint, Burn and Swap entities
  • Add index on blockTimestamp for BlockProgress entity
  • Query uniswap entities without checking pruned block
  • Add typeorm subscriber to update latest entities

@nikugogoi nikugogoi self-assigned this Nov 7, 2022
@nikugogoi nikugogoi changed the title Custom entity queries to optimize frontend app GQL requests [WIP] Custom entity queries to optimize frontend app GQL requests Nov 7, 2022
@nikugogoi nikugogoi changed the title [WIP] Custom entity queries to optimize frontend app GQL requests Custom entity queries to optimize frontend app GQL requests Nov 8, 2022
@ashwinphatak ashwinphatak merged commit 88cdbd9 into vulcanize:main Nov 8, 2022
@ashwinphatak ashwinphatak deleted the custom-queries-optimize branch November 8, 2022 11:43
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.

3 participants