Skip to content

Commit 33eb38f

Browse files
committed
Commit DB between each volume when doing Mass Editor search
Adding to queue will write to the database, so commit so as to avoid long database locking.
1 parent ad656d2 commit 33eb38f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/features/mass_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def run(self, **kwargs) -> None:
130130
ws = WebSocket()
131131
total_items = len(self.volume_ids)
132132

133-
for item_index, volume_id in enumerate(self.volume_ids):
133+
for item_index, volume_id in enumerate(iter_commit(self.volume_ids)):
134134
ws.update_mass_editor_status(
135135
self.identifier,
136136
item_index + 1,

0 commit comments

Comments
 (0)