Skip to content

Improve PID update performance#12121

Open
qqmyers wants to merge 1 commit intoIQSS:developfrom
QualitativeDataRepository:improvepidupdates
Open

Improve PID update performance#12121
qqmyers wants to merge 1 commit intoIQSS:developfrom
QualitativeDataRepository:improvepidupdates

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Jan 28, 2026

What this PR does / why we need it: The original code (from 8 yrs ago) was doing an em.merge and em.flush after every file PID update. This PR uses the merged dataset (which should assure the files are merged) and relies on the automatic flush at the end of the transaction instead, avoiding the extra db traffic.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: FWIW: I have not tried to perf test this to know if it is significant but it seems like useful cleanup.

Suggestions on how to test this: ~regression test - file pids and the globalidcreatetime updated on them when the /api/datasets//modifyRegistrationMetadata is called or when the update-current-version option is used for publication as before, recognizing that the code now checks to make sure the DataCite xml is different before updating it so some change to the list of dataset creators, or file name, mimetype is needed. Adding an extra author/creator is probably the easiest test.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: seems pretty small to be listed in the notes

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jan 28, 2026
@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Jan 28, 2026
@coveralls
Copy link

Coverage Status

coverage: 24.335% (+0.001%) from 24.334%
when pulling a9f785f on QualitativeDataRepository:improvepidupdates
into cc37d4d on IQSS:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GDCC: QDR of interest to QDR Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants