[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:17:30 UTC 2011


The following commit has been merged in the debian branch:
commit 331be16598f6022d7b94eb25a77c72b7c985ea36
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Sun Jul 19 01:58:34 2009 +0200

    opimd: SQLite-Contacts: add indexes to database

diff --git a/framework/subsystems/opimd/pimb_sqlite_contacts.py b/framework/subsystems/opimd/pimb_sqlite_contacts.py
index eba018c..c05b678 100644
--- a/framework/subsystems/opimd/pimb_sqlite_contacts.py
+++ b/framework/subsystems/opimd/pimb_sqlite_contacts.py
@@ -114,6 +114,14 @@ class SQLiteContactBackend(Backend):
             """
 
             cur.execute("CREATE TABLE IF NOT EXISTS contact_values (id INTEGER PRIMARY KEY, contactId INTEGER, Field TEXT, Value TEXT)")
+
+            cur.execute("CREATE INDEX IF NOT EXISTS contacts_id_idx ON contacts (id)")
+            cur.execute("CREATE INDEX IF NOT EXISTS contacts_Name_idx ON contacts (Name)")
+            cur.execute("CREATE INDEX IF NOT EXISTS contacts_Surname_idx ON contacts (Surname)")
+            cur.execute("CREATE INDEX IF NOT EXISTS contacts_Nickname_idx ON contacts (Nickname)")
+
+            cur.execute("CREATE INDEX IF NOT EXISTS contact_values_contactId_idx ON contact_values (contactId)")
+
             self.con.text_factory = sqlite3.OptimizedUnicode
             self.con.commit()
             cur.close()

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list