Skip to content

Commit

Permalink
Improve performance of sp_describe_undeclared_parameters (#1905)
Browse files Browse the repository at this point in the history
sp_describe_undeclared_parameters is slow. The issue is reported here: #1317.

Initially, we used to create a query in C for every parameter passed as an argument to
sp_describe_undeclared_parameters and then execute it. This was taking huge amount of time as it used JOINS among
multiple views like sys.objects, sys.columns, sys.types T. In this commit, we have replaced the use of such views as
much as possible with pg catalogs. This aids to the improvement in performance.

Task: BABEL-3705
Signed-off-by: Shameem Ahmed <[email protected]>
  • Loading branch information
ahmed-shameem authored Nov 20, 2023
1 parent c44dcf7 commit fdbd3fe
Showing 1 changed file with 267 additions and 110 deletions.
Loading

0 comments on commit fdbd3fe

Please sign in to comment.