Skip to content

Commit

Permalink
Merge pull request #31 from NREL/dt/patch-time-series-store
Browse files Browse the repository at this point in the history
Minor patches
  • Loading branch information
daniel-thom authored Jun 5, 2024
2 parents 3570237 + 4de95a9 commit ffb8fb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"pint~=0.23",
"loguru~=0.7.2",
"rich~=13.7.1",
"pydantic >= 2.4, <= 3",
"pydantic >= 2.7, < 3",
]
[project.optional-dependencies]
dev = [
Expand Down
6 changes: 0 additions & 6 deletions src/infrasys/time_series_metadata_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ def _create_indexes(self, cur) -> None:
# 1c. time series for one component with all user attributes
# 2. Optimize for checks at system.add_time_series. Use all fields and attribute hash.
# 3. Optimize for returning all metadata for a time series UUID.
self._execute(cur, f"CREATE INDEX by_c ON {self.TABLE_NAME} (component_uuid)")
self._execute(
cur,
f"CREATE INDEX by_c_vn_tst ON {self.TABLE_NAME} "
f"(component_uuid, variable_name, time_series_type)",
)
self._execute(
cur,
f"CREATE INDEX by_c_vn_tst_hash ON {self.TABLE_NAME} "
Expand Down

0 comments on commit ffb8fb0

Please sign in to comment.