Skip to content

Commit f356fd0

Browse files
davidrakerschandrika
authored andcommitted
Remove redundant primary key index.
1 parent bda0c67 commit f356fd0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

volttron/platform/dbutils/postgresqlfuncts.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ def setup_historian_tables(self):
177177
self.execute_stmt(SQL(
178178
"SELECT create_hypertable({}, 'ts', if_not_exists => true)").format(
179179
Literal(self.data_table)))
180-
self.execute_stmt(SQL(
181-
'CREATE INDEX IF NOT EXISTS {} ON {} (topic_id, ts)').format(
182-
Identifier(f"idx_{self.data_table}"),
183-
Identifier(self.data_table))
184-
)
185180
else:
186181
self.execute_stmt(SQL(
187182
'CREATE INDEX IF NOT EXISTS {} ON {} (ts ASC)').format(

0 commit comments

Comments
 (0)