Update DataExtractionOSM/src/net/osmand/data/preparation/DBDialect.java

This commit is contained in:
pavolzibrita 2011-10-17 17:36:34 +03:00
parent 024d183303
commit 70f752ea67

View file

@ -102,7 +102,7 @@ public enum DBDialect {
//we are exclusive, some speed increase ( no need to get and release logs
statement.executeQuery("PRAGMA locking_mode = EXCLUSIVE");
//increased cache_size, by default it is 2000 and we have quite huge files...
statement.executeUpdate("PRAGMA cache_size = 10000");
//statement.executeUpdate("PRAGMA cache_size = 10000"); cache size could be probably contraproductive on slower disks?
statement.close();
System.out.println(String.format("SQLITE running in %s mode", SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java"));
return connection;