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

Tweak block indexing to use height as the primary key #4757

Merged
merged 1 commit into from
Jul 24, 2024

Commits on Jul 24, 2024

  1. Tweak block indexing to use height as the primary key

    Every block has a unique height, we almost always want to join with
    other tables based on block height, the serial ID has no meaning: ergo,
    we should get rid of the id, and just use height as the primary key.
    
    There was no index on height either, which would have made joining on it
    slow.
    
    Also removed unwraps and expects and as in favor of actual errors.
    cronokirby committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f3be7b4 View commit details
    Browse the repository at this point in the history