0

I am using external table of main database to Datawarehouse database. While selecting data from external table to # table it take almost 9 min, sometime it take more time. How I can improve this performance of external table?

S. Deshmukh
  • 314
  • 4
  • 19

1 Answers1

2

Is to use the following TSQL to perform the query in the external database and get only the data required. The filter will be applied first in the external database, and then the data from the filter will be received by the database.

When you enable the query's Actual Execution Plan option, you can see that the query : Select * from PerformanceVarcharNVarchar, brings data from an external database to the temporal database, and then the engine applies the filter.

Here is the Official Microsoft Documents :EXECUTE (Transact-SQL) | Docs

Else you can use Azure Data Sync : SQL Data Sync is an Azure SQL Database-based service that allows you to synchronize selected data bidirectionally between multiple databases, both on-premises and in the cloud.

The Original Post has got detailed insights: Lesson Learned #56: External tables and performance issues | techcommunity

IpsitaDash-MT
  • 1,326
  • 1
  • 3
  • 7