EG 2.11 Merging records will time out with large amounts of holds

Bug #1642715 reported by Blake GH
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

EG 2.11

It turns out that the trigger:

reporter_hold_request_record_trigger

which fires when action.hold_request rows are updated, will take a long time to update the corresponding target in reporter.hold_request_record. This is a new table in 2.11. It was a view before.

explain analyze update reporter.hold_request_record
set hold_type='T', target=1932036,bib_record=1932036
where id=313288;
                                                                            QUERY PLAN

 Update on hold_request_record (cost=0.43..4.45 rows=1 width=10) (actual time=13653.487..13653.487 rows=0 loops=1)
   -> Index Scan using reporter_hold_request_record_pkey_idx on hold_request_record (cost=0.43..4.45 rows=1 width=10) (actual time=0.320..0.324 rows=1 loops=1)
         Index Cond: (id = 313288)
 Planning time: 0.904 ms
 Execution time: 13653.535 ms
(5 rows)

13 seconds to update a row in that table!

I don't really know what the solution is.

Revision history for this message
Mike Rylander (mrylander) wrote :

The analyze output suggests that either the reporter.hold_request_record table (or the pkey index) is terribly bloated, or something is blocking the update. Is this happening on every hold target change?

Revision history for this message
Blake GH (bmagic) wrote :

It is happening on every hold change that I have tested.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.