-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
explain: print "FULL SCAN (SOFT LIMIT)" for full scans with soft limits #85421
Conversation
752e49f
to
0691287
Compare
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.
LIMITED FULL SCAN sounds a bit like a contradiction, but I'm struggling to think of a better idea. cc @vy-ton and @kevin-v-ngo for awareness and in case you guys have an idea about how to make this more clear.
Reviewed 10 of 10 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @msirek)
Yeah, I was also struggling to come up with something better. I also thought about |
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.
Some more ideas to throw into the mix: HALTABLE FULL SCAN
or HALTING FULL SCAN
. I also thought of PREEMPTIBLE FULL SCAN
but I think preemption would mean stopping the scan and restarting it later.
Reviewed 10 of 10 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @msirek)
The more I think about it, the more I dislike |
|
I like |
I also like |
Change `EXPLAIN` output of full scans with soft limits to "FULL SCAN (SOFT LIMIT)" instead of "FULL SCAN". This will help distinguish them from unlimited full scans. So now we print three different messages for three kinds of full scans: - For full scans with hard limits we print "LIMITED SCAN". - For full scans with soft limits we print "FULL SCAN (SOFT LIMIT)". - For unlimited full scans we print "FULL SCAN". Release note (sql change): Change `EXPLAIN` output of full scans with soft limits to "FULL SCAN (SOFT LIMIT)" instead of "FULL SCAN", to distinguish them from unlimited full scans. Unlimited full scans always scan the entire index. Full scans with soft limits could scan the entire index, but usually halt early once enough rows have been found to satisfy their parent operator.
0691287
to
a921a33
Compare
Thanks for the feedback, everyone! bors r=rytaft,mgartner |
Build succeeded: |
Change
EXPLAIN
output of full scans with soft limits to"FULL SCAN (SOFT LIMIT)" instead of "FULL SCAN". This will help
distinguish them from unlimited full scans.
So now we print three different messages for three kinds of full scans:
Release note (sql change): Change
EXPLAIN
output of full scans withsoft limits to "FULL SCAN (SOFT LIMIT)" instead of "FULL SCAN", to
distinguish them from unlimited full scans. Unlimited full scans always
scan the entire index. Full scans with soft limits could scan the entire
index, but usually halt early once enough rows have been found to
satisfy their parent operator.