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

Improve database schema #57

Merged
merged 4 commits into from
Oct 3, 2023
Merged

Improve database schema #57

merged 4 commits into from
Oct 3, 2023

Conversation

pshenmic
Copy link
Owner

@pshenmic pshenmic commented Oct 3, 2023

Issue

Remove redundant stuff and create indexes in the database schema

Things done

  • Changed block_height height
  • Removed blocks.id field (join on the blocks.hash instead, order by blocks.height)
  • Create index for blocks.height
  • Limit varchar(255) of data contract identifier to the varchar(44)
  • Create index for state_transitions.block_hash
  • Create index for data_contracts.identifier
  • Dropped blocks.chain field (redundant)

@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 9:20am

@pshenmic pshenmic merged commit a3c4777 into master Oct 3, 2023
5 checks passed
@pshenmic pshenmic self-assigned this Oct 9, 2023
@pshenmic pshenmic added the Indexer Related to indexer module label Oct 13, 2023
@pshenmic pshenmic deleted the feat/scheme-hardening branch October 29, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexer Related to indexer module
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant