]> git.decadent.org.uk Git - dak.git/commitdiff
add indexes to make override trigger fast
authorMike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
Sat, 31 Oct 2009 13:47:28 +0000 (13:47 +0000)
committerMike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
Sat, 31 Oct 2009 13:47:28 +0000 (13:47 +0000)
Signed-off-by: Mike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
dak/dakdb/update23.py

index 708011cf5257f2b496a3be74541df96d105d75e1..5fa8a64358be455ae63fc84307f6c3df82b9e4be 100644 (file)
@@ -227,6 +227,10 @@ $$ LANGUAGE plpythonu VOLATILE SECURITY DEFINER;
                       AFTER UPDATE ON override
                       FOR EACH ROW EXECUTE PROCEDURE update_contents_for_override();""")
 
+
+        c.execute( "CREATE INDEX ind_deb_contents_name ON deb_contents(package);");
+        c.execute( "CREATE INDEX ind_udeb_contents_name ON udeb_contents(package);");
+
         self.db.commit()
 
     except psycopg2.ProgrammingError, msg: