mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-06 10:43:17 +00:00
make unarchive more responsive by downloading documents in parallel
unarchive is triggered interactively so we should try to make it reasonably fast
This commit is contained in:
parent
dfa0036507
commit
82d0f4fce8
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module.exports = DocArchiveManager =
|
|||
return callback new Error("No docs for project #{project_id}")
|
||||
jobs = _.map docs, (doc) ->
|
||||
(cb)-> DocArchiveManager.unArchiveDocChanges project_id, doc._id, cb
|
||||
async.series jobs, callback
|
||||
async.parallelLimit jobs, 4, callback
|
||||
|
||||
unArchiveDocChanges: (project_id, doc_id, callback)->
|
||||
MongoManager.getArchivedDocChanges doc_id, (error, count) ->
|
||||
|
|
Loading…
Reference in a new issue