Project

General

Profile

Actions

Bug #21290

closed

sync_past_versions is too slow

Added by Peter Amstutz 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Story points:
-
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']

Subtasks 1 (0 open1 closed)

Task #21337: Review 21290-sync-past-versionsResolvedPeter Amstutz01/03/2024Actions
Actions

Also available in: Atom PDF