This commit is contained in:
2025-11-19 16:10:25 +08:00
parent 9aa041c479
commit 5a77756c33
25 changed files with 238 additions and 90 deletions

View File

@ -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();
}