add
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ public class DistrictInfoJob implements SimpleJob{
|
|||||||
DBCollection collection = seaweedMongoTemplate.getCollection("seaweed");
|
DBCollection collection = seaweedMongoTemplate.getCollection("seaweed");
|
||||||
DBCursor cursor = collection.find(new BasicDBObject("cat", "district").append("status", 0),
|
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);
|
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()) {
|
while (cursor.hasNext()) {
|
||||||
final DBObject data = cursor.next();
|
final DBObject data = cursor.next();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user