Skip to content

MSSQL API slow with large tables due to incorrect varchar/nvarchar in sp_executesql #1973

@tdutch1

Description

@tdutch1

Discussed in #1964

I converted the discussion to an issue since I've been able to identify the problem. Please see my comment here: #1964 (comment)

Originally posted by tdutch1 January 11, 2024
I'm working on a POC using DAB in a Static Web App. My data source is an Azure SQL table. It's taking anywhere from three to ten seconds for the DAB API to return a response from database queries. When capturing and running the same SQL in SSMS, the queries return results in less than one second.

Is it generally expected that DAB APIs, when running in a SWA, will take at least three seconds to return results? Also, what are some factors that would cause the range to go from three seconds to ten? The Azure SQL database is not heavily used so that does not appear to be the issue.

Metadata

Metadata

Labels

bugSomething isn't workingcriCustomer Reported issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions