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
提交
取消