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 the way specifications are added to the database #871

Merged
merged 16 commits into from
Jan 2, 2025
Merged

Conversation

bennybp
Copy link
Contributor

@bennybp bennybp commented Dec 19, 2024

Description

This PR improves how specifications are added (and duplicate specifications are detected) for all record types except Manybody (which is going to be dramatically changed in the future).

Now, hashing of the entire specification (although not sub-specifications) is used. This should increase performance, especially for QC/Singlepoint specifications. There is also the option to add many specifications as a batch instead.

This is part of a foundation of increasing the performance of returning completed records from a manager (and ingestion of external records in the future).

This also improves and expands the tests for adding specifications for the different record types as well.

There is a required database migration, however this change is completely server-side and not API breaking

Status

  • Code base linted
  • Ready to go

@bennybp bennybp force-pushed the spec_hash branch 4 times, most recently from 0947582 to b019b9b Compare December 20, 2024 17:52
@bennybp bennybp merged commit 26e69a0 into main Jan 2, 2025
15 checks passed
@bennybp bennybp deleted the spec_hash branch January 2, 2025 19:16
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.

1 participant