代码提交
This commit is contained in:
@ -89,7 +89,8 @@ public class SQLiteUtil {
|
||||
stmt.execute("PRAGMA temp_store=MEMORY;"); // 临时表/索引存内存(减少磁盘IO)
|
||||
stmt.execute("PRAGMA busy_timeout=2000;"); // 忙等待超时:2秒(避免瞬时并发锁等待)
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException("初始化SQLite数据源失败(路径:" + dbFilePath + ")", e);
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException("初始化SQLite数据源失败(路径:" + dbFilePath + ")+ 原因是:" + e.getMessage());
|
||||
}
|
||||
|
||||
return dataSource;
|
||||
|
||||
Reference in New Issue
Block a user