+2
-3
@@ -44,7 +44,7 @@ class DistrictIndexBatch extends BaseBatch{
|
||||
|
||||
static def targetUrl = "http://192.168.0.12:9200/district_comp_potential/_doc"
|
||||
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(1)
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(30)
|
||||
|
||||
static main(args) {
|
||||
runBatch(new DistrictIndexBatch(), args);
|
||||
@@ -59,8 +59,7 @@ class DistrictIndexBatch extends BaseBatch{
|
||||
def citys = ["上海"]//CommonDatautils.findAllCity();
|
||||
for(def city : citys){
|
||||
def dists = CommonDatautils.findAllDistrictByCity(city, "district", ["city","alias","region","name", "finish_building_date","estate_charge","lat","lng","lng2","lat2"])
|
||||
|
||||
dists = dists[0..20]
|
||||
// dists = dists[0..20]
|
||||
calcute(city, dists)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user