Optimise orthanc's use of postgres database#645
Merged
Conversation
Otherwise pulling into orthanc is very slow
Orthanc was unable to process updates because shm was limited orthancorthanc-raw-1 | W0608 15:58:08.309266 DICOM-2 postgresql-index:/DatabaseBackendAdapterV4.cpp:1537] An SQL transaction failed and will likely be retried: ERROR: could not resize shared memory segment "/PostgreSQL.684568212" to 2097152 bytes: No space left on device
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #645 +/- ##
=======================================
Coverage 87.79% 87.79%
=======================================
Files 78 78
Lines 3735 3735
=======================================
Hits 3279 3279
Misses 456 456 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
p-j-smith
approved these changes
Jun 24, 2026
p-j-smith
left a comment
Contributor
There was a problem hiding this comment.
looks good, just a minor change to the description of the schedule
Co-authored-by: Paul Smith <paul.j.smith@ucl.ac.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updating orthanc caused different tags to be archived in the database and pulling from VNA was very slow. Also encountered errors from postgres plugin as postgres was out of memory in shm.
Type of change
Suggested Checklist
mainbranch.squash and merge