sqlite 避免并发锁库问题
// 启用WAL模式提高并发性能 Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db"); Statement stmt = conn.createStatement(); stmt.execute("PRAGMA journal_mode=WAL"); stmt.execute("PRAGMA synchronous=NORMAL");
// 启用WAL模式提高并发性能 Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db"); Statement stmt = conn.createStatement(); stmt.execute("PRAGMA journal_mode=WAL"); stmt.execute("PRAGMA synchronous=NORMAL");