<?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: SAS upload to Voyager/TRINO is very slow in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910341#M359012</link>
    <description>&lt;P&gt;Try adding the INSERTBUFF option to your database LIBNAME. I normally set this to at least 10,000 rows as default settings are normally way too slow. You can try different values to see what gives best performance. DBCOMMIT is another option worth trying.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 21:27:50 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-01-03T21:27:50Z</dc:date>
    <item>
      <title>SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910212#M358979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my work I&lt;SPAN&gt;&amp;nbsp;need to upload temporary table from SAS server to EAP server. Now we are using TRINO/Voyager and under SAS we can do it running the below codes, but it is very sloooooow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Uploading 428 records from SAS (sashelp.cars) to EAP takes 13/24 minutes. I have experience with hadoop and under hadoop it takes 2-3 minutes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how can I speed up this step ? I tried to add “BULKLOAD=YES” option but no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname libtest jdbc classpath='/opt/sas/JDBC3/'&lt;/P&gt;&lt;P&gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class='io.trino.jdbc.TrinoDriver'&lt;/P&gt;&lt;P&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL='jdbc:trino://ccc.aaa.bbb.net:8980/eap/aml?SSL=true&amp;amp;SSLVerification=CA&amp;amp;SSLTrustStorePath=/opt/sas/JDBC3/cacerts.jks&amp;amp;SSLTrustStorePassword=changeit'&lt;/P&gt;&lt;P&gt;32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user=&amp;amp;sysuserid.&lt;/P&gt;&lt;P&gt;33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="&amp;amp;pass."&lt;/P&gt;&lt;P&gt;34&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;schema=my_schema&lt;/P&gt;&lt;P&gt;35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;NOTE: Libref LIBTEST was successfully assigned as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JDBC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data libtest.sas_test_upl_presto2;&lt;/P&gt;&lt;P&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.cars;&lt;/P&gt;&lt;P&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;/P&gt;&lt;P&gt;NOTE: There were 428 observations read from the data set SASHELP.CARS.&lt;/P&gt;&lt;P&gt;NOTE: The data set LIBTEST.SAS_TEST_UPL_PRESTO2 has 428 observations and 15 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:08.07&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 10:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910212#M358979</guid>
      <dc:creator>michal_1407</dc:creator>
      <dc:date>2024-01-03T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910216#M358981</link>
      <description>&lt;P&gt;13 minutes for 428 rows with a few variables! Even taking some latency into account this is just "ridiculous". Don't even bother about looking into bulk loading for now.&lt;/P&gt;
&lt;P&gt;I suggest you (your SAS admin) raise a track with SAS tech support to get to the bottom of this issue - even though it's likely not on the SAS side.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 11:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910216#M358981</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-03T11:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910227#M358987</link>
      <description>yes, i agree with you. but know i try to find any additional SAS option to improve/solve this problem but without any success : /</description>
      <pubDate>Wed, 03 Jan 2024 13:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910227#M358987</guid>
      <dc:creator>michal_1407</dc:creator>
      <dc:date>2024-01-03T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910341#M359012</link>
      <description>&lt;P&gt;Try adding the INSERTBUFF option to your database LIBNAME. I normally set this to at least 10,000 rows as default settings are normally way too slow. You can try different values to see what gives best performance. DBCOMMIT is another option worth trying.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 21:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910341#M359012</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-01-03T21:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910965#M359226</link>
      <description>&lt;P&gt;I added this option but the execution time was similar, without any significant change : /&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910965#M359226</guid>
      <dc:creator>michal_1407</dc:creator>
      <dc:date>2024-01-09T08:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910972#M359229</link>
      <description>&lt;P&gt;Maybe i am wrong, but&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327800"&gt;@michal_1407&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:08.07&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 seconds&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;means, that sas needed 0.35 seconds to its job, but had to wait 13 minutes all in all so that other processes can complete their part of the task.&amp;nbsp; With the tiny dataset used, i would exclude the network connection as possible bottleneck. Which SAS version is used? Older version used older version of Java, so maybe there is a problem in with the jdbc driver combined with a elderly Java version - just guessing.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910972#M359229</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2024-01-09T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910973#M359230</link>
      <description>&lt;P&gt;we use SAS server. Yes, real time takes 13 minutes because using my code each row is inserted to EAP by TRINO row by row. So if I have 428 rows there will be 428 insert commands to EAP by TRINO and it is stupid because i dont know how to force SAS to do it in one INSERT.&amp;nbsp; I use JDBC driver to connect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AUTOMATIC SYSVER 9.4&lt;BR /&gt;AUTOMATIC SYSVLONG 9.04.01M7P080620&lt;BR /&gt;AUTOMATIC SYSVLONG4 9.04.01M7P08062020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname libtest jdbc classpath='/opt/sas/JDBC3/'&lt;BR /&gt;class='io.trino.jdbc.TrinoDriver'&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910973#M359230</guid>
      <dc:creator>michal_1407</dc:creator>
      <dc:date>2024-01-09T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910981#M359232</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327800"&gt;@michal_1407&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;we use SAS server. Yes, real time takes 13 minutes because using my code each row is inserted to EAP by TRINO row by row. So if I have 428 rows there will be 428 insert commands to EAP by TRINO and it is stupid because i dont know how to force SAS to do it in one INSERT.&amp;nbsp; I use JDBC driver to connect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AUTOMATIC SYSVER 9.4&lt;BR /&gt;AUTOMATIC SYSVLONG 9.04.01M7P080620&lt;BR /&gt;AUTOMATIC SYSVLONG4 9.04.01M7P08062020&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname libtest jdbc classpath='/opt/sas/JDBC3/'&lt;BR /&gt;class='io.trino.jdbc.TrinoDriver'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The two libname options which allow you to insert more than one row at a time are dbcommit (set: dbcommit=0) and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1dsqxfjr3yjegn1lb5uqmmvbegu.htm" target="_self"&gt;insertbuff&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;...but... for 428 rows also a insert/commit per row should take much much less than 13 minutes - unless this creates for your case every time a new connection with some latency.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 12:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910981#M359232</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-09T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS upload to Voyager/TRINO is very slow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910987#M359234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327800"&gt;@michal_1407&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Using the SASTRACE option to see what's going on while communicating with the Database&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Reading this paper&amp;nbsp;&lt;A title="Accessing Your Favorite Database with SAS® and JDBC" href="https://support.sas.com/resources/papers/proceedings19/3358-2019.pdf" target="_blank" rel="noopener"&gt;Accessing Your Favorite Database with SAS® and JDBC&lt;/A&gt; to see if it offers any tips.&lt;/LI&gt;
&lt;LI&gt;Read the SAS/ACCESS Interface to JDBC Help Docs (Make sure you select the relevant SAS release docs)&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0zm6fjwtgsnrzn1fegvyhl3yrwd.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0zm6fjwtgsnrzn1fegvyhl3yrwd.htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1chghbbeu5k4sn1jh2jax39cgse.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1chghbbeu5k4sn1jh2jax39cgse.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 12:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-upload-to-Voyager-TRINO-is-very-slow/m-p/910987#M359234</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2024-01-09T12:51:01Z</dc:date>
    </item>
  </channel>
</rss>

