mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
fix performance of update removal
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = RedisManager =
|
||||
multi = rclient.multi()
|
||||
# Delete all the updates which have been applied (exact match)
|
||||
for update in docUpdates or []
|
||||
multi.lrem Keys.uncompressedHistoryOps({doc_id}), 0, update
|
||||
multi.lrem Keys.uncompressedHistoryOps({doc_id}), 1, update
|
||||
multi.exec (error, results) ->
|
||||
return callback(error) if error?
|
||||
# It's ok to delete the doc_id from the set here. Even though the list
|
||||
|
||||
Reference in New Issue
Block a user