From 4a70e9233e38f8d64553719f4050bc07dca1e62f Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 13 Oct 2016 19:08:50 +0100 Subject: [PATCH] 9747: Remove index on primary key column Primary key columns are already indexed. --- gramps/plugins/db/dbapi/dbapi.py | 35 -------------------------------- 1 file changed, 35 deletions(-) diff --git a/gramps/plugins/db/dbapi/dbapi.py b/gramps/plugins/db/dbapi/dbapi.py index f522e4a2a..a6a0b0982 100644 --- a/gramps/plugins/db/dbapi/dbapi.py +++ b/gramps/plugins/db/dbapi/dbapi.py @@ -302,41 +302,6 @@ class DBAPI(DbGeneric): self.dbapi.execute("""CREATE INDEX reference_ref_handle ON reference(ref_handle); """) - self.dbapi.execute("""CREATE INDEX - name_group_name ON name_group(name); - """) - - # Fixes: - self.dbapi.execute("""CREATE INDEX - place_handle ON place(handle); - """) - self.dbapi.execute("""CREATE INDEX - citation_handle ON citation(handle); - """) - self.dbapi.execute("""CREATE INDEX - media_handle ON media(handle); - """) - self.dbapi.execute("""CREATE INDEX - person_handle ON person(handle); - """) - self.dbapi.execute("""CREATE INDEX - family_handle ON family(handle); - """) - self.dbapi.execute("""CREATE INDEX - event_handle ON event(handle); - """) - self.dbapi.execute("""CREATE INDEX - repository_handle ON repository(handle); - """) - self.dbapi.execute("""CREATE INDEX - tag_handle ON tag(handle); - """) - self.dbapi.execute("""CREATE INDEX - note_handle ON note(handle); - """) - self.dbapi.execute("""CREATE INDEX - source_handle ON source(handle); - """) self.dbapi.execute("""CREATE INDEX family_gramps_id ON family(gramps_id);