Skip to content

Fix dim_model.is_tested logic#37

Merged
ataft merged 1 commit intomainfrom
dim-model-fix
Oct 1, 2025
Merged

Fix dim_model.is_tested logic#37
ataft merged 1 commit intomainfrom
dim-model-fix

Conversation

@ataft
Copy link
Copy Markdown
Contributor

@ataft ataft commented Oct 1, 2025

The current dim_model.is_tested logic is very slow, but also is incorrect because it looks for tests from any invocation when it should just look for tests on the current invocation. I've made two changes:

  1. Join on command_invocation_id for models to tests
  2. Instead of joining on the surrogate key, join on the actual table columns

The current `dim_model.is_tested` logic is very slow, but also is incorrect because it looks for tests from any invocation when it should just look for tests on the current invocation. I've made two changes:
1. Join on command_invocation_id for models to tests
2. Instead of joining on the surrogate key, join on the actual table columns
@ataft ataft requested a review from MiConnell October 1, 2025 22:36
Copy link
Copy Markdown
Contributor

@MiConnell MiConnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and this is so much more performant.

@ataft ataft merged commit e930b2e into main Oct 1, 2025
@ataft ataft deleted the dim-model-fix branch October 1, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants