3 回答
是王小二呀
TA贡献88条经验 获得超19个赞
public static void getAllLocation() {
int DBRowCount = 0;
int n = 1;
DBRowCount = getDBRowCount();
System.out.println("数据共有:" + DBRowCount + "行");
n = DBRowCount / Integer.parseInt("2000") + 1;//每次只解析2000条,可以一直解析,10万条也就几分钟
while (n > 0) {
getLocation();
n--;
}
}应该是每个连接要限制解析次数,2000条之后重新连接就行了,我们每天需要解析上千万条经纬度信息,你试试
添加回答
举报
0/150
提交
取消
