'Snowflake to SQL Server data load performance
I am trying to improve performance of a SQL query used to move data from snowflake view to SQL Server table. Query uses linked server created using a ODBC driver to connect to Snowflake view from SQL Server using an OPENQUERY statement. Currently 50 million rows take around 2 hours to move the data. Please suggest if there is anything that can be done to improve performance.
Sample query we are using:
SELECT *
INTO #temp
FROM OPENQUERY (SnowflakeServer, 'select * from "SnowflakeDB"."SnowflakeSchema"."mytable"')
Solution 1:[1]
So this is not based on anything concrete, but a few ideas could be.
- Importing to a table with an columnstore index
- Doing the query using PolyBase
- Exporting your query to CSV and loading using BULK INSERT
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nisd |
