m_sql.erase (0);
-#if 0
+#if 1
/* Set synchronous=OFF, write user database will become much faster.
- * It will cause user database corrupted,
- * if the operatering system crashes or computer loses power.
+ * It will cause user database corrupted, if the operatering system
+ * crashes or computer loses power.
* */
- m_sql << "PRAGMA synchronous=OFF;\n";
+ m_sql << "PRAGMA synchronous=NORMAL;\n";
#endif
/* Set the cache size for better performance */
/* Set journal mode */
m_sql << "PRAGMA journal_mode=TRUNCATE;\n";
- /* Set the sync mode */
- m_sql << "PRAGMA synchronous=NORMAL;\n";
-
/* Using EXCLUSIVE locking mode on main database
* for better performance */
m_sql << "PRAGMA main.locking_mode=EXCLUSIVE;\n";