Actions
Bug #21290
closedsync_past_versions is too slow
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-
Release:
Release relationship:
Auto
Description
If a collection has a very large number of past versions (in this case, 2000), operations involving sync_past_versions
(moving, trashing) will time out.
The current implementation loads each record, updates attributes, and saves it back.
We probably want to update the fields directly with SQL UPDATE.
The fields that get synchronized are:
['uuid', 'owner_uuid', 'delete_at', 'trash_at', 'is_trashed', 'replication_desired', 'storage_classes_desired']
Actions