Good Evening,
I have an issue while querying a table (10 columns and about 30 mi records) with Alteryx. When exporting the data from this query using MS SQL Server Management Studio it takes about 10 seconds, but when I try it with Alteryx, using the Input Data Tool, the workflow takes about 30 minutes to run.
In order to improve our performance, I’ve tried to use the In-DB tools and the workflow took about 20 seconds.
Is there any known issue that may be causing such a difference?
This is the query I’m using on both Input Data and Connection In-DB:
SELECT *
FROM DATABASE_NAME
WHERE CONVERT ( VARCHAR , [DT_COMPTC],102 ) + CONVERT ( VARCHAR , [DT_UPDT],102 ) IN (SELECT CONVERT ( VARCHAR , [DT_COMPTC],102 ) + CONVERT ( VARCHAR ,MAX([DT_UPDT]),102 ) FROM DATABASE_NAME GROUP BY [DT_COMPTC]) and DT_COMPTC BETWEEN '2017-07-01' AND '2018-01-14' AND CNPJ_FUNDO IN ('CNPJ_1','CNPJ_2')
Here’s some info:
Data Types:
DT_COMPTC: Date
DT_UPDT: Datetime
CNPJ_FUNDO: Varchar
Alteryx Version: 2018.2.4.47804
Ping between computer and SQL Server: bellow 1ms