Skip to content

Commit

Permalink
Improve performance of sp_describe_undeclared_parameters (#2040)
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 21, 2023
1 parent 71681a8 commit 4af8ec3
Showing 1 changed file with 298 additions and 130 deletions.
Loading

0 comments on commit 4af8ec3

Please sign in to comment.