upgrades: improve delete dropped udf upgrade job efficiency #104586
Labels
branch-release-23.1
Used to mark GA and release blockers, technical advisories, and bugs for 23.1
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
release-blocker
Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
The delete descriptors of dropped functions upgrade job is inefficient. It used to look at every single id until the max descriptor id which was very inefficient when the max descriptor id really large, in which case the upgrade job took very long even there was no function descriptor at all.
This manifested as a stuck upgrade in https://github.com/cockroachlabs/support/issues/2364.
Jira issue: CRDB-28615
The text was updated successfully, but these errors were encountered: