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 DB validation tool #200

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Improve DB validation tool #200

merged 2 commits into from
Apr 18, 2023

Conversation

arkpar
Copy link
Member

@arkpar arkpar commented Apr 16, 2023

  • Added an alternative hash column iteration. The index is copied to memory, sorted by disk offset and then iterated. This makes checking large databases 100x faster.
  • Also added some code to follow free entry lists and check them for correctness.

let tables = self.tables.read();
let index = &tables.index;

let entries = index.sorted_entries()?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably use start_chunk as a restart parameter, but would still need to rebuild sorted entries at all restart so probably something that only make sense to put in place if really needed at some point.

@Tpt Tpt changed the title Improve DB validaton tool Improve DB validation tool Apr 18, 2023
@arkpar arkpar merged commit b09e70a into master Apr 18, 2023
@arkpar arkpar deleted the arkpar/iter_ordered branch April 18, 2023 15:02
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