Changeset 197

Show
Ignore:
Timestamp:
10/27/09 10:43:54 (4 weeks ago)
Author:
lb
Message:

Pragma synchronous off to improve the perf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cpp_analysis/src/xtc/lang/c4/DBHandler.java

    r196 r197  
    123123                try{ 
    124124                        stmt = conn.createStatement(); 
     125                        //We set the pragma synchronous OFF 
     126                        //The Database may be corrupted if the computer loses power or if the system crashes 
     127                        //We don't really care 
     128                        stmt.execute("PRAGMA synchronous = OFF;"); 
     129                         
    125130                        //Table to avoid recounting the same header twice when analyzing 
    126131                        stmt.executeUpdate("create table if not exists treesMD5 (id INTEGER PRIMARY KEY ASC, hash BINARY[16], node TEXT); ");