<?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: Table Index not used in Web Report Studio? in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849570#M2555</link>
    <description>The data is stripped in dataset. The issue is that if the sql contains the strip command, the index is not used because he tries to transform again</description>
    <pubDate>Wed, 14 Dec 2022 07:53:43 GMT</pubDate>
    <dc:creator>Dominik4</dc:creator>
    <dc:date>2022-12-14T07:53:43Z</dc:date>
    <item>
      <title>Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849079#M2543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we are using WRS 4.4 and I have a table with 11.400.000 observations and 568 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hoped to increase report speed when adding an index. So I created one in meta data with for example column 3, column 5 and column 7. The index physically exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report shows round about 10 - 15 columns in a list, sums up a few columns and has a where clause with 5 filter conditions (off course they contain the 3 columns of the index).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end the report does not load faster. I already tried to preorder the data before writing the table but that did not help. In map studio it is not visible if he uses the index or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas how to speed up with an index?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 12:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849079#M2543</guid>
      <dc:creator>Dominik4</dc:creator>
      <dc:date>2022-12-12T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849094#M2544</link>
      <description>&lt;P&gt;An index will only benefit you if you extract a sufficiently small (think 10% or less) subset of your data. Otherwise, the overhead of reading the index file actually increases time.&lt;/P&gt;
&lt;P&gt;Keep in mind that a SAS dataset is organized in pages, and that a whole page (128K) needs to be read anyway if a single observation from it is needed.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849094#M2544</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-12T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849095#M2545</link>
      <description>&lt;P&gt;It's been awhile since I worked with WRS and Information maps.&lt;/P&gt;
&lt;P&gt;The key is to somehow capture the queries that the information map generates towards the Pooled WS server.&lt;/P&gt;
&lt;P&gt;Then take those queries and run it outside WRS, with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As you might know it's important how the index is defined vs the query is written, e.g., the first column in the index must be part of the where clause.&lt;/P&gt;
&lt;P&gt;If you wish to speed up the queries, you might want to consider moving the data to a SPDE libref for faster table scans, and slightly more advanced where clause optimizer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849095#M2545</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-12T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849098#M2546</link>
      <description>&lt;P&gt;Those 568 columns look suspicious to me. In all my professional work, I had datasets with such numbers only for regression analysis, but never for reporting.&lt;/P&gt;
&lt;P&gt;Consider stripping down or restructuring your dataset (if there's data in structure, see Maxim 19).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849098#M2546</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-12T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849107#M2547</link>
      <description>&lt;P&gt;There are some performance suggestions in the documentation:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/biwaag/n1ohgyo7p5a1ien1p13q9nurdysx.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/biwaag/n1ohgyo7p5a1ien1p13q9nurdysx.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849107#M2547</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2022-12-12T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849320#M2548</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Sorting Data and 3 (from over 500) columns in index should be much smaller that reading the data source.&lt;/P&gt;&lt;P&gt;Moreover you are right. Having 568 columns is rubbish and I'm already working on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13745"&gt;@Madelyn_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. I will read it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;renamed the data file to get an exception with the sql. Seems although I have 5 filters the sql does not contain a where clause. So this would be a reason why index is not working. Does it makes sense that he first load all data in a temp data set to filter afterwards??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 07:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849320#M2548</guid>
      <dc:creator>Dominik4</dc:creator>
      <dc:date>2022-12-13T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849325#M2549</link>
      <description>&lt;P&gt;Again, I'm a litle rusty.&lt;/P&gt;
&lt;P&gt;Not sure what you mean by creating a temporary table? You don't refer to the query cache...?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case yo can't get an indexed search, you want to restructure your data, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;points out. If you have several reports with with not much overlapping information, you could consider splitting your data set in to multiple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For where clause, I'm not sure how the information map acts if the filters is only defined in WRS (the documentation leaves a lot to wish for when comes to query tuning). If it works for your use case you could try to define filters in the information map, and have them prompted in the WRS report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 08:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849325#M2549</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-13T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849419#M2550</link>
      <description>&lt;P&gt;Yes, the index file will be&amp;nbsp;&lt;U&gt;much&lt;/U&gt;&amp;nbsp;smaller than the dataset file. But if the index doesnt't keep you from still reading most, if not all, of the dataset file itself, it only adds additional I/O. And if your "want" observations are scattered randomly across the dataset pages, this will happen even with a small subset.&lt;/P&gt;
&lt;P&gt;If you also have the MDDB server at hand, consider creating and using a cube.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849419#M2550</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-13T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849447#M2551</link>
      <description>I think that OLAP Server is the product that should be considered, MDDB server is a SAS V8 legacy construct.&lt;BR /&gt;Having Infomaps and WRS - it's likely OLAP Server is licensed as well with the EBIS offering.</description>
      <pubDate>Tue, 13 Dec 2022 16:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849447#M2551</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-13T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849448#M2552</link>
      <description>&lt;P&gt;You're right, it's OLAP. At my age, long-term memory tends to override short-term &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849448#M2552</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-13T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849563#M2553</link>
      <description>&lt;P&gt;Thank you for your feedback.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also use the olap feature but in this case it is prefered to have a relational table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splitting Data is the idea for the future. I search for a fast solution while we are working on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your idea I created a chapter filter (hope it is the correct description, I dont have a English WRS) and now I can see that the SQL has an where clause. Unfortunately the where clause contains a strip command that prevents using the index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHERE (STRIP( ( table0.myColumn ) )) IN ( '1D' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to avoid that strip command? I guess then I reached by goal and he uses the index&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 06:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849563#M2553</guid>
      <dc:creator>Dominik4</dc:creator>
      <dc:date>2022-12-14T06:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849565#M2554</link>
      <description>&lt;P&gt;Why not strip the variable when the dataset is created?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 06:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849565#M2554</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-14T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849570#M2555</link>
      <description>The data is stripped in dataset. The issue is that if the sql contains the strip command, the index is not used because he tries to transform again</description>
      <pubDate>Wed, 14 Dec 2022 07:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849570#M2555</guid>
      <dc:creator>Dominik4</dc:creator>
      <dc:date>2022-12-14T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849571#M2556</link>
      <description>Sorry, I think we've reached my WRS knowledge limit...&lt;BR /&gt;I suggest you open a track to SAS tech support to get som detailed insight on the "WRS engine".</description>
      <pubDate>Wed, 14 Dec 2022 07:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849571#M2556</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-14T07:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849577#M2557</link>
      <description>&lt;P&gt;And I guess this is SQL created by the information map, over which you have no control. I also suggest to get in contact with SAS TS.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849577#M2557</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-14T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849657#M2558</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If there is an appropriate index and the SQL optimizer determines that using the index will improve performance, the SQL optimizer uses the index without being told to do so. The optimizer is not 100% correct in every case. Although there are SQL commands that will force the use of an index, you do not have control over the PROC SQL that is automatically generated by the query layer used by Web Report Studio.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849657#M2558</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2022-12-14T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index not used in Web Report Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849790#M2559</link>
      <description>&lt;P&gt;Thank you for all that feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a pitty that I dont have control over the named strip function. Off course the SQL optimizer does not choose an index if the statement contains a strip function in the where condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I found a some kind of workaround. Predefining the same Filter in Maps does not cause the strip function and so the index is working then.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Table-Index-not-used-in-Web-Report-Studio/m-p/849790#M2559</guid>
      <dc:creator>Dominik4</dc:creator>
      <dc:date>2022-12-15T07:02:02Z</dc:date>
    </item>
  </channel>
</rss>

