We are running a very simple select from a single table that results in a set of data that is about 1.7-ish million rows.
We've hoped that we can export that to a shared network drive, but the performance on the file write ( the query itself runs in about 3.5 seconds ) has been abysmal, returning 150,000-ish of those rows in about 6 hours. At that point, our Okta authentication times out and the query must be altered and re-run to catch the rows not brought through in the original run.
I can run it against my local and the entirety of the returned data set plops happily into the output csv in about 15 minutes.
Is there a way that I could dig further into the delays here? Has anyone else encountered this issue and been able to track down the root cause?
Thanks!
I should have added the command I was using for reference:
snowsql -c {connection} -f .\source_q.sql -o output_file=c:\users\{username}\desktop\snowsql\output.csv -o quiet=true -o friendly=false -o header=true -o output_format=csv --authenticator externalbrowser
The query I was running looks like this:
select
cnt.id,
cnt.account_id,
cnt.did_c,
cnt.okta_id_c
from
MEMBER.CONTACT cnt
with some small where clauses that I've removed for simplicity.