User merge/delete slow since notes consolidation fix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Unassigned |
Bug Description
Found on PINES production running Evergreen 3.8.0.
Merging a user in 3.6 was basically instantaneous, but since our upgrade to Evergreen 3.8.0, we've seen very long delays in merging patrons. Analysis of the DB functions led to slowness in this line in actor.usr_
UPDATE actor.usr_message SET editor = dest_usr WHERE editor = src_usr;
EXPLAIN revealed a seq scan on the actor.usr_message table, which is very large in PINES.
After taking a look at actor.usr_message, I realized we are missing an index on the "editor" column.
Branch adding that index on the way.
To fix in a running production system, run the following command:
CREATE INDEX CONCURRENTLY aum_editor ON actor.usr_message (editor);
Changed in evergreen: | |
milestone: | none → 3.8.1 |
Changed in evergreen: | |
assignee: | nobody → Bill Erickson (berick) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Branch to add the index is here:
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ csharp/ lp1960956_ fix_slow_ patron_ merge_delete