+1
-1
@@ -61,7 +61,7 @@ public class DistrictInfoJob implements SimpleJob{
|
||||
DBCollection collection = seaweedMongoTemplate.getCollection("seaweed");
|
||||
DBCursor cursor = collection.find(new BasicDBObject("cat", "district").append("status", 0),
|
||||
new BasicDBObject("city", 1).append("region", 1).append("name", 1)).addOption(Bytes.QUERYOPTION_NOTIMEOUT);
|
||||
final Semaphore semaphore = new Semaphore(5);
|
||||
final Semaphore semaphore = new Semaphore(10);
|
||||
while (cursor.hasNext()) {
|
||||
final DBObject data = cursor.next();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user