Skip to content
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

DM-29562: Rewrite dataset subquery logic to make it easier on query planners. #506

Merged
merged 1 commit into from Apr 12, 2021

Conversation

TallJimbo
Copy link
Member

No description provided.

@TallJimbo TallJimbo force-pushed the tickets/DM-29562 branch 3 times, most recently from 15928a3 to 78294ae Compare April 10, 2021 14:58
Copy link
Contributor

@andy-slac andy-slac 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.

Comment on lines +469 to +435
# Also constrain dataset_type_id in static table in case that helps
# generate a better plan.
# We could also include this in the JOIN ON clause, but my guess is
# that that's a good idea IFF it's in the foreign key, and right
# now it isn't.
query.where.append(self._static.dataset.columns.dataset_type_id == self._dataset_type_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that this is helping as the constraint on dataset_id is already very strict, but I hope it is not hurting either.

@TallJimbo TallJimbo merged commit 0c8a5d4 into master Apr 12, 2021
@TallJimbo TallJimbo deleted the tickets/DM-29562 branch April 12, 2021 03:05
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.

None yet

2 participants