[OPENIDM-4677] Delete-by-bulk needed for Relationship Clear and ClearNotIn Created: 25/Nov/15 Updated: 06/Jun/17 Resolved: 06/Jun/17
|Component/s:||Module - Relationships|
|Affects Version/s:||OpenIDM 4.0.0|
|Reporter:||jason vincent||Assignee:||jason vincent|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Sprint:||OpenIDM Sprint 53|
|Epic Link:||Improve performance of OpenIDM|
The two methods called 'clear' and 'clearNotIn' in the CollectionRelationshipProvider is forced to iterate all relationships individually to delete them. The fix is to implement a bulk delete so that all records with the associated relationship can be deleted in 1 or 2 queries.
Note: Sync and activityLog still needs to be invoked for unique deleted relationship.