<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Queyring Snowflake data is super slow in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914549#M44265</link>
    <description>&lt;P&gt;it works! Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 18:13:09 GMT</pubDate>
    <dc:creator>sonnysangBB</dc:creator>
    <dc:date>2024-02-05T18:13:09Z</dc:date>
    <item>
      <title>Queyring Snowflake data is super slow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914545#M44263</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS EG 8.3 to query Snowflake database. I wrote a query like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
select count(*) as cnt from (
select
   col1, col2, col3... (there are 12 columns)
from tbl1
inner join tbl2
on ...
inner join tbl3
on ...
where ...
)
quit;&lt;/PRE&gt;&lt;P&gt;the expected cnt should be 337,947 because I ran similar code in snowflake successfully (less than 1 minute). But I got errors saying&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ERROR: Insufficient space in file WORK.'SASTMP-000000054'.UTILITY.&lt;/LI&gt;&lt;LI&gt;ERROR: File WORK.'SASTMP-000000054'.UTILITY is damaged. I/O processing did not complete.&lt;/LI&gt;&lt;LI&gt;ERROR: There is not enough space to store some intermediate results during join processing.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My question is how to modify the code so it can run in SAS? Because I need the 337,947 records for further analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To me, I feel the code is trying to pull all data into local machine before aggregation. Is the code supposed to be run in Snowflake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 17:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914545#M44263</guid>
      <dc:creator>sonnysangBB</dc:creator>
      <dc:date>2024-02-05T17:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Queyring Snowflake data is super slow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914546#M44264</link>
      <description>&lt;P&gt;Move it into the Snowflake server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say you have a libref named SNOW pointing to Snowflake then use code like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect using snow;
select cnt from connection to snow (
select count(*) as cnt from (
select
   col1, col2, col3... (there are 12 columns)
from tbl1
inner join tbl2
on ...
inner join tbl3
on ...
where ...
))
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2024 17:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914546#M44264</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-02-05T17:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Queyring Snowflake data is super slow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914549#M44265</link>
      <description>&lt;P&gt;it works! Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 18:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Queyring-Snowflake-data-is-super-slow/m-p/914549#M44265</guid>
      <dc:creator>sonnysangBB</dc:creator>
      <dc:date>2024-02-05T18:13:09Z</dc:date>
    </item>
  </channel>
</rss>

