Forum Discussion
Wanted to share the solution here. The query was right, no need to change the “Fetch-size” as well.
The only thing that was missing was ’ ’ for the IDs that we were passing in the query. Thus, the query would look like -
WHERE NAME IN (‘102345’, ‘1701’, ‘5604878’)
The Snowflake Lookup snap covers this functionality. That will allow lookup on any number of ids, it will internally batch as required. Also, Lookup snap will use bind parameters, avoiding possible issues with SQL Injection which can happen with a SQL statement string constructed in the Select snap.
- darshthakkar4 years agoValued Contributor
Thank you @akidave for the suggestion and long term solution.
- darshthakkar4 years agoValued Contributor
Snowflake lookup is definitely helpful and infact snowflake execute does wonders too if joins are used in the query itself however with both snowflake lookup and execute, I have seen the performance of the pipeline getting degraded.
The pipeline that used to complete within a minute, now takes around ~35-40m just to go over lookup/execute respectively.
- darshthakkar4 years agoValued Contributor
@robin @bojanvelevski: Would you recommend using
Join Snap
instead ofsnowflake lookup & execute
for a faster execution of the pipeline?Please feel free to provide any other suggestions, trust me, with those suggestions of yours, I would be exposed to something different (I’m still new to snapLogic and learning my way out)