Task #2602
closed
Bulk action - performance - implement a transaction for each item.
Added by Vít Švanda about 4 years ago.
Updated about 4 years ago.
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 0 to 90
During testing bulk action for cancel 2000 virtual requests I noticed the bulk action gradually slowed down -> I had to implement clear of a Hibernate cache and for it I had to added transaction for whole bulk action and new transaction for each item.
Transaction wrapping is used only if the BulkAction.requireNewTransaction method returns "true". For backward compatibility, the default value is "false". This feature is only used in bulk actions to cancel and execute virtual system requests now (VsRequestRealizeBulkAction, VsRequestCancelBulkAction - feature is testing within these actions).
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/e62eb0b2a5664658df14b92f1643a9d6099f5b22
- Related to Task #1132: Bulk resolve of virtual requests added
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I tested it together with #1132 on 15k items, it works smoothly and code is nice, thx!
- Status changed from Resolved to Closed
Also available in: Atom
PDF