Browse Source

respect mongo bulk operations limit of 1000 operations

Brian Gough 10 years ago
parent
commit
e1aa436286
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/track-changes/app/coffee/MongoAWS.coffee

+ 1 - 1
services/track-changes/app/coffee/MongoAWS.coffee

@@ -9,7 +9,7 @@ ReadlineStream = require "readline-stream"
 module.exports = MongoAWS =
 module.exports = MongoAWS =
 
 
 	MAX_SIZE:  1024*1024 # almost max size
 	MAX_SIZE:  1024*1024 # almost max size
-	MAX_COUNT: 1024 # almost max count
+	MAX_COUNT: 512 # almost max count
 
 
 	archiveDocHistory: (project_id, doc_id, update, _callback = (error) ->) ->
 	archiveDocHistory: (project_id, doc_id, update, _callback = (error) ->) ->