-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add obs_raw indexes #89
Conversation
Peculiar; the same tests ( |
35189b5
to
54173fc
Compare
Should be good to go here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, the changes this PR makes are pretty straightforward, but there are just a gajillion contiguencies - different database starting states, different test setups, environments, etc. A lot of complexity, but broad, rather than deep, handling various contingencies and combinations.
It looks great to me, very thoughtful and thorough, though I am not familiar enough with this codebase to guess at what setups or states might additionally need to be covered, which seems the likeliest way there'd be an error here.
logger.debug(f"Creating index {index_name}") | ||
op.create_index(index_name, table_name, columns, unique=False, schema=schema_name) | ||
else: | ||
logger.debug(f"Index {index_name} already exists; skipping create") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
As a partial address to #87 , add the following indexes.
mod_time_idx
obs_raw_comp_idx
obs_raw_history_id_idx
obs_raw_id_idx
The new revision follows 7a3b247c577b (current head).
mod_time_idx
obs_raw_comp_idx
obs_raw_history_id_idx
obs_raw_id_idx