New upgrade step to fix inconsistencies in UID index. - #901
Merged
Merged
Conversation
We reindexed its value in the UID index, but this was cleared and rebuilt later, so seems useless. Also, this would update all catalog metadata, where we only need to update the UID column. So when we are done, explicitly update the UID catalog column. This should be faster.
That should make the check we use it for faster.
Contributor
Author
|
@ale-rt This is ready now. Previously on the test site this took 1 hour and 45 minutes. Now it is down to 30 minutes. Main change for that, shaving off a full hour: I mentioned above that I had trouble inserting some items, but I have discovered what caused that. This happens when the context is a survey that does not use training, and with the miller columns you select a training question. I am making a PR in osha.oira to make this clear. |
ale-rt
reviewed
Oct 24, 2025
ale-rt
left a comment
Member
There was a problem hiding this comment.
Thanks Maurits, wonderful job as usual ❤️
I added some comments.
This also works when the Plone Site is within a Folder.
Contributor
Author
ale-rt
approved these changes
Oct 31, 2025
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.

For https://github.com/syslabcom/scrum/issues/3987
I have run this on
oshastag-oira-app1. Output:This takes 1 hour 45 minutes... Maybe that can be improved.
Then browsing to teleworking like in this comment looks like this:
I tried inserting one of those, but nothing happened. I don't know why. Maybe it just took long? For another module it worked.
I undid the database changes, so we still have this site to test on.