+5
-5
@@ -58,7 +58,7 @@ class BigdataForsaleBatch extends BaseBatch{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
|
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
|
||||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(1)
|
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(60)
|
||||||
|
|
||||||
public static ExecutorService fixedThreadPool2 = Executors.newFixedThreadPool(200)
|
public static ExecutorService fixedThreadPool2 = Executors.newFixedThreadPool(200)
|
||||||
|
|
||||||
@@ -153,8 +153,8 @@ class BigdataForsaleBatch extends BaseBatch{
|
|||||||
for(def i=0;i<districts.size();i++){
|
for(def i=0;i<districts.size();i++){
|
||||||
final def rMap = districts[i];
|
final def rMap = districts[i];
|
||||||
|
|
||||||
// fixedThreadPool.execute(new Runnable() {
|
fixedThreadPool.execute(new Runnable() {
|
||||||
// void run() {
|
void run() {
|
||||||
try {
|
try {
|
||||||
totalCount.addAndGet(1)
|
totalCount.addAndGet(1)
|
||||||
def commId = rMap.get("_id").toString()
|
def commId = rMap.get("_id").toString()
|
||||||
@@ -210,8 +210,8 @@ class BigdataForsaleBatch extends BaseBatch{
|
|||||||
} finally {
|
} finally {
|
||||||
latch.countDown()
|
latch.countDown()
|
||||||
}
|
}
|
||||||
// };
|
};
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
latch.await()
|
latch.await()
|
||||||
return retMap
|
return retMap
|
||||||
|
|||||||
Reference in New Issue
Block a user