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

fix(rdf): fixes to insert history command #46

Merged
merged 6 commits into from
Jul 1, 2024

Conversation

n-dusan
Copy link
Contributor

@n-dusan n-dusan commented Jun 29, 2024

Mainly bugfixes that were figured out during testing stelae update on our production stele RDF repositories.

  • Add more details to failed RDF triple errors
  • Fix database schema to correctly map the url to doc_mpath and lib_mpath correctly
  • Optimize versions endpoint performance by indexing all columns used in the versions endpoint query

n-dusan added 3 commits June 20, 2024 13:48
The query on the `library` model that resolves `url` to `mpath`
needs to also include the stele that we're querying for.
@n-dusan n-dusan self-assigned this Jun 29, 2024
@n-dusan n-dusan added the bug Something isn't working label Jun 29, 2024
n-dusan added 2 commits July 1, 2024 18:52
For document or collection versions we want the query times to be really
fast. Since for both types of queries we do LEFT JOINS to retrieve
relevant versions, index the `publication_version` and
`publication_has_publication_versions` ids. Add a couple of additional
indexes for the `document_change` and `library_change` tables.
It can happen (although highly unlikely) that urls aren't unique. In
those cases, resolving the document_mpath will not resolve to the
correct stele. To resolve, add a `stele` column to `document_element`,
the same as we did for `library` model.
@n-dusan n-dusan force-pushed the ndusan/insert-changes-fixes branch from 24acd05 to ac6b0af Compare July 1, 2024 16:53
@n-dusan n-dusan marked this pull request as ready for review July 1, 2024 16:58
@n-dusan n-dusan requested a review from tombh July 1, 2024 17:05
@n-dusan n-dusan merged commit 4e818d8 into main Jul 1, 2024
10 checks passed
@n-dusan n-dusan deleted the ndusan/insert-changes-fixes branch July 1, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants