Skip to content

Commit 6712213

Browse files
author
Richard Jones
committed
add optimised index on postgresql text index table
1 parent f598612 commit 6712213

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

roundup/backends/back_postgresql.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ def fix_version_2_tables(self):
151151
self.sql('CREATE INDEX %ss_key_idx ON %ss(%s_key)'%(name, name,
152152
name))
153153

154+
def fix_version_3_tables(self):
155+
rdbms_common.Database.fix_version_3_tables(self)
156+
self.sql('''CREATE INDEX words_both_idx ON public.__words
157+
USING btree (_word, _textid)''')
158+
154159
def add_actor_column(self):
155160
# update existing tables to have the new actor column
156161
tables = self.database_schema['tables']

0 commit comments

Comments
 (0)