Author: fw Date: 2005-09-21 17:56:39 +0000 (Wed, 21 Sep 2005) New Revision: 2073 Modified: lib/python/security_db.py Log: (DB.initSchema): Actually set the page size to 4096 (has to come first to be effective). Modified: lib/python/security_db.py ==================================================================--- lib/python/security_db.py 2005-09-21 17:46:59 UTC (rev 2072) +++ lib/python/security_db.py 2005-09-21 17:56:39 UTC (rev 2073) @@ -138,17 +138,17 @@ """Creates the database schema.""" cursor = self.cursor() + # This gives us better performance (it''s usually the file + # system block size). This must come first to be ffective. + + cursor.execute("PRAGMA page_size = 4096") + # Set the schema version to an invalid value which is # different from zero. We can use this to detect a partially # created schema. cursor.execute("PRAGMA user_version = 1") - # This gives us better performance (it''s usually the file - # system block size). - - cursor.execute("PRAGMA page_size = 4096") - cursor.execute("""CREATE TABLE inodeprints (file TEXT NOT NULL PRIMARY KEY, inodeprint TEXT NOT NULL,