<?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 Writing data to from SAS to BigQuery very slow in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960253#M83919</link>
    <description>&lt;P&gt;I'm using SAS to process data and then write the result in BigQuery database through Simba ODBC driver. I have managed to get this working using proc sql create table, but writing the data takes insanely long time. I tried inserting around 200 rows of data with 4 short string values. This query takes around 7 minutes to finish. Inserting 2000 takes 1 hour. Does anyone know how to insert rows efficiently to BigQuery?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 14:19:41 GMT</pubDate>
    <dc:creator>JoonaH</dc:creator>
    <dc:date>2025-02-26T14:19:41Z</dc:date>
    <item>
      <title>Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960253#M83919</link>
      <description>&lt;P&gt;I'm using SAS to process data and then write the result in BigQuery database through Simba ODBC driver. I have managed to get this working using proc sql create table, but writing the data takes insanely long time. I tried inserting around 200 rows of data with 4 short string values. This query takes around 7 minutes to finish. Inserting 2000 takes 1 hour. Does anyone know how to insert rows efficiently to BigQuery?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 14:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960253#M83919</guid>
      <dc:creator>JoonaH</dc:creator>
      <dc:date>2025-02-26T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960264#M83920</link>
      <description>&lt;P&gt;Can you please provide some more information, like:&lt;/P&gt;
&lt;P&gt;- SAS version&lt;/P&gt;
&lt;P&gt;- What SAS/Access module your are using&lt;/P&gt;
&lt;P&gt;- options used in your libnmae statement&lt;/P&gt;
&lt;P&gt;- topography of your set-up&lt;/P&gt;
&lt;P&gt;Usually bulk-load is the fastest way to load an external DB, that might be available depending on the answers to the questions above.&lt;/P&gt;
&lt;P&gt;Using these options might give some clue on the processing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 15:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960264#M83920</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-02-26T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960265#M83921</link>
      <description>&lt;P&gt;You say that you &lt;U&gt;insert&lt;/U&gt; observations. What if you use a simple DATA step to write the SAS dataset to the database?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 15:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960265#M83921</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-02-26T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960355#M83923</link>
      <description>&lt;P&gt;In my experience the default settings that tune database loading are not optimal. I've had excellent load performance by adding these options to the LIBNAME or CONNECTION statement pointing at the database:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MyDB ODBC &amp;lt; connection settings &amp;gt; dbcommit = 0 insertbuff = 10000;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However you may need to experiment with these options to get the best performance.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 01:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960355#M83923</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-02-27T01:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960392#M83925</link>
      <description>Also look at the BULKLOAD option.</description>
      <pubDate>Thu, 27 Feb 2025 10:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/960392#M83925</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-02-27T10:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/961222#M83928</link>
      <description>Thank you all for responses. I haven't had much time to test different setups so maybe the answer hides here somewhere.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; Log hasn't revealed anything so far, but then again I'm not that good interpreting it.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; I tried using proc sql create table. Now that you suggestes using data step I tried it too, but the performance was the same.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt; Tried to fiddle with these settings as you suggested, but didn't get any observable differences yet.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; (and also &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;) couldn't get BULKLOAD to work yet. This is probably the root cause for this issue. Need to dig if my driver supports it. I'm afraid it might not.&lt;BR /&gt;&lt;BR /&gt;Will take quite a while though when I can next look into this so the answer needs to wait for now.</description>
      <pubDate>Fri, 07 Mar 2025 13:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/961222#M83928</guid>
      <dc:creator>JoonaH</dc:creator>
      <dc:date>2025-03-07T13:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data to from SAS to BigQuery very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/961268#M83929</link>
      <description>&lt;P&gt;To date, you haven't posted any SAS logs of your slow steps. That means we have no idea what techniques you are using. In my experience some techniques are better than others. If you want to make further progress then I suggest you post one or two slow steps so we can get a better idea of what techniques you use.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 01:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-data-to-from-SAS-to-BigQuery-very-slow/m-p/961268#M83929</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-03-08T01:50:20Z</dc:date>
    </item>
  </channel>
</rss>

