Skip to content

Improve the way specifications are added to the database - #871

Merged
bennybp merged 16 commits into
mainfrom
spec_hash
Jan 2, 2025
Merged

Improve the way specifications are added to the database#871
bennybp merged 16 commits into
mainfrom
spec_hash

Conversation

@bennybp

@bennybp bennybp commented Dec 19, 2024

Copy link
Copy Markdown
Contributor

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
@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