200-100
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class RemoveHouse extends BaseBatch{
|
|||||||
def rets = []
|
def rets = []
|
||||||
for(def d : dbcursor){
|
for(def d : dbcursor){
|
||||||
rets << d._id
|
rets << d._id
|
||||||
if(rets.size()==200){
|
if(rets.size()==100){
|
||||||
def delquery = new BasicDBObject()
|
def delquery = new BasicDBObject()
|
||||||
delquery.put("_id", new BasicDBObject('$in', rets))
|
delquery.put("_id", new BasicDBObject('$in', rets))
|
||||||
SEABIRD_COLL.remove(delquery)
|
SEABIRD_COLL.remove(delquery)
|
||||||
|
|||||||
Reference in New Issue
Block a user