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

Now using DISTINCT in ivoid-selecting registry subqueries. #572

Merged

Conversation

msdemlei
Copy link
Contributor

@msdemlei msdemlei commented Jul 2, 2024

This is not only more logical (let's filter out duplicates as early as possible)but experimentally also is enough to keep the planner going off to follies of the type encountered in bug #571.

@msdemlei msdemlei requested a review from ManonMarchand July 2, 2024 09:01
@msdemlei msdemlei force-pushed the make-extra-table-constraints-subqueried branch from cea3d07 to 7db0cfb Compare July 2, 2024 09:20
This is not only more logical (let's filter out duplicates as early as
possible)but experimentally also is enough to keep the planner going off to
follies of the type encountered in bug astropy#571.
@msdemlei
Copy link
Contributor Author

msdemlei commented Jul 2, 2024

I think no-changelog-entry is roughly right, although I have added the new PR number to the changelog entry about subqueries (that doesn't seem to placate the CI, though).

Anyway, the current test failure appears to be unrelated to the change at hand (though I'd say we should do something about the sia2 tests in general, as they generally take ages). So, I think this is ready to go.

@ManonMarchand
Copy link
Member

I was unsure about the changelog. But I guess it can be merged with the failure.

I don't have time to review today but I'll look tomorrow.

These two successive PRs make me wonder how we could detect that a change that was done makes everything slower. Would it be wise to benchmark?

@msdemlei
Copy link
Contributor Author

msdemlei commented Jul 2, 2024 via email

@bsipocz bsipocz added this to the v1.6 milestone Jul 2, 2024
@bsipocz bsipocz linked an issue Jul 2, 2024 that may be closed by this pull request
@bsipocz
Copy link
Member

bsipocz commented Jul 2, 2024

I was unsure about the changelog. But I guess it can be merged with the failure.

adding the PR number is certainly the preferred way for the changelog for this. Or calling it "affect-dev", and when that label present the checker expects no changelog entry.

The reason for the CI job to fail was the missing milestone though.

@bsipocz
Copy link
Member

bsipocz commented Jul 2, 2024

(though I'd say we should do something about the sia2 tests in general, as they generally take ages)

That's temporary and is due to cadc experiencing some server side issues.

Copy link
Member

@bsipocz bsipocz 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 to me, and I can confirm the speed improvement compared to main (and even main was speedier than what we had in the last release, so I cannot really benchmark this further)

@andamian
Copy link
Contributor

andamian commented Jul 2, 2024

I think that the extra resources required by DISTINCT (temporary table to sort and remove duplicates) are saved with UNION ALL so overall the impact on the database is small.

@ManonMarchand ManonMarchand merged commit 246a209 into astropy:main Jul 5, 2024
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Multi-Constraint RegTAP queries are much slower now
4 participants