From 2c2dc926fe47332bc6addf6e7a23b05f24945888 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 10 Jan 2022 13:34:15 +0800 Subject: [PATCH] update --- .../com/fangjia/script/gj/level/DistrictIndexBatch.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy index f1d9f31c7..aa68defee 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/level/DistrictIndexBatch.groovy @@ -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) } }