<?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: slow view performance in a sas data set created from Oracle view in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472024#M30614</link>
    <description>&lt;P&gt;Using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fullfstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the code will add some more information to the log, that might reveal the component responsible for the long runtime. If "real time", e.g. is much higher than "cpu time" the sas process waits for some other process to finish.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 09:48:46 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2018-06-21T09:48:46Z</dc:date>
    <item>
      <title>slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472006#M30609</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experiencing pretty slow performance when opening even a small dataset that has been created by either a data step or a proc sql from an Oracle view. I can't imagine what makes&amp;nbsp;it so slow when I open it and try to scroll down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; example1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; result.user_permission_report; &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*this is a view in Oracle*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; example2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; result.user_permission_report;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My aim is to give a faster experience for users by feeding it's data into SAS. The table is not big (~4000 rows&amp;nbsp;and ~40columns). I tried to create the table in the local work or on the server, but the situation is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestions? It looks as if the data&amp;nbsp;set is still functioning as a view, but how can I create a plain, raw dataset from these data then? The situation is the same in EG. 5.1 or 7.1 (32bit). SAS version is 9.4m1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Barnabas&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 08:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472006#M30609</guid>
      <dc:creator>dsdsdssss</dc:creator>
      <dc:date>2018-06-21T08:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472009#M30610</link>
      <description>&lt;P&gt;Have a look at the latencies between your desktop where EG is running and the SAS server. Open a cmd window and do a&lt;/P&gt;
&lt;PRE&gt;ping servername&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 08:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472009#M30610</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-21T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472011#M30611</link>
      <description>It seems OK.&lt;BR /&gt;Minimum: 0 millisec&lt;BR /&gt;Maximum: 1 millisec&lt;BR /&gt;&lt;BR /&gt;I don't have this problem with other SAS tables on the server (these are not created from an Oracle view)</description>
      <pubDate>Thu, 21 Jun 2018 08:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472011#M30611</guid>
      <dc:creator>dsdsdssss</dc:creator>
      <dc:date>2018-06-21T08:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472013#M30612</link>
      <description>&lt;P&gt;If you always run the code before you view the dataset, then the Oracle view is executed each time. To circumvent this, create a permanent SAS dataset in a library that is accessible by all users who need that data.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 08:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472013#M30612</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-21T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472024#M30614</link>
      <description>&lt;P&gt;Using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fullfstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the code will add some more information to the log, that might reveal the component responsible for the long runtime. If "real time", e.g. is much higher than "cpu time" the sas process waits for some other process to finish.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472024#M30614</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-06-21T09:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472033#M30615</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160841"&gt;@dsdsdssss&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If accessing the Oracle view directly then there could be latency in establishing the connection to Oracle as well as time required to move the data from Oracle to SAS over the network.&lt;/P&gt;
&lt;P&gt;....but as you write you're experiencing the same issue also when loading the data first into SAS Work and then&amp;nbsp;browse the Work table that can't really be the explanation.&lt;/P&gt;
&lt;P&gt;And then you write also that you don't experience such issues with other tables in Work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hmmm.... Could it be that these 40 columns are all character with a really big length? What happens if you create and access the table in Work with the compress option?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table example2(compress=yes) as 
select * from result.user_permission_report;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472033#M30615</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-06-21T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: slow view performance in a sas data set created from Oracle view</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472072#M30620</link>
      <description>&lt;P&gt;Thanks for&amp;nbsp;the suggestion, the problem stems from the lengths in the Oracle table! It's a&amp;nbsp;pretty weird behaviour though...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a SAS data set in EG, and set&amp;nbsp;the lengths&amp;nbsp;of the data set before the SET clause, because the original length of the variabes are longer. For example display_nm is originally 1024 long:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data &lt;FONT size="3"&gt;&lt;FONT face="Courier New"&gt;user_permission_report&lt;/FONT&gt;&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;length display_nm $200;&lt;/P&gt;&lt;P&gt;set source;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 Create an Oracle data set by a single data step (sasoprsk is the oracle library):&lt;/P&gt;&lt;P&gt;data sasoprsk.&lt;FONT size="3"&gt;&lt;FONT face="Courier New"&gt;user_permission_report&lt;/FONT&gt;&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;set &lt;FONT face="Courier New" size="3"&gt;user_permission_report&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. There is a view in a SAS EG library, which points to the oracle table. For example:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;view&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; result.user_permission_report &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sasoprsk.user_permission_report;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, if I check the length in the&amp;nbsp;three different tables, comes the magic:&lt;/P&gt;&lt;P&gt;- in&amp;nbsp;the 1st data set the length is 200&lt;/P&gt;&lt;P&gt;- in the 2nd, if I log in to Oracle and check the length of display_nm, it's VARCHAR2(800)&lt;/P&gt;&lt;P&gt;- if I check the length in the SAS VIEW in EG by right click-&amp;gt; Properties-&amp;gt; Columns, it shows 1024!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish I could to this with my bank account. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it might be some kind of metadata collision, or what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/slow-view-performance-in-a-sas-data-set-created-from-Oracle-view/m-p/472072#M30620</guid>
      <dc:creator>dsdsdssss</dc:creator>
      <dc:date>2018-06-21T12:40:52Z</dc:date>
    </item>
  </channel>
</rss>

