全部
This commit is contained in:
@ -131,7 +131,7 @@ public class PoiExporter {
|
||||
}
|
||||
|
||||
// 批量插入(带进度日志)
|
||||
int batchSize = 5000;
|
||||
int batchSize = 1000;
|
||||
int totalCount = 0; // 总处理数据量
|
||||
try (ResultSet rs = queryPs.executeQuery()) {
|
||||
while (rs.next()) {
|
||||
@ -165,7 +165,7 @@ public class PoiExporter {
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
new PoiExporter().exportPoiByArea("兰州市");
|
||||
new PoiExporter().exportPoiByArea("重庆市");
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user