<?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: Proc OLAP Performing Inefficient Queries to Build Dimensions?? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70577#M20306</link>
    <description>Thanks for that tip on using the options, I'll include in my code now and see what I get.  We were originally looking directly at the open cursors on the Oracle side.  This will be good to see on the SAS side.</description>
    <pubDate>Thu, 10 Feb 2011 14:42:35 GMT</pubDate>
    <dc:creator>StephenOverton</dc:creator>
    <dc:date>2011-02-10T14:42:35Z</dc:date>
    <item>
      <title>Proc OLAP Performing Inefficient Queries to Build Dimensions??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70575#M20304</link>
      <description>I'm currently working to improve a very large and complex cube.  Contains over 80 dimensions and over 200 measures.  The star schema it builds the cube from lives in Oracle.  By looking at the open cursors in Oracle, I noticed the queries SAS submits to build the levels of the dimensions seem to be very inefficient.  It always performs a select * during the dimension built phase.  Wouldn't it be more efficient to select just the single column for each level?  I'm not exactly sure how OLAP cubes are physically built to begin with, I'm only speculating.</description>
      <pubDate>Wed, 09 Feb 2011 14:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70575#M20304</guid>
      <dc:creator>StephenOverton</dc:creator>
      <dc:date>2011-02-09T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OLAP Performing Inefficient Queries to Build Dimensions??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70576#M20305</link>
      <description>The cube build process does submit Prepare statements that do a "select *" on each dimension table, in order to get the table headers, but it does not execute those statements.&lt;BR /&gt;
In your typical cube build, if you run with &lt;BR /&gt;
OPTIONS SASTRACE=',,,ds' sastraceloc=saslog nostsuffix;&lt;BR /&gt;
you'll see something like that:&lt;BR /&gt;
&lt;BR /&gt;
ORACLE_61: Prepared: on connection 1&lt;BR /&gt;
SELECT * FROM "OLAPTST1"."SDTIME"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
....more proc olap statements&lt;BR /&gt;
&lt;BR /&gt;
and later the actual data retrieval:&lt;BR /&gt;
&lt;BR /&gt;
ORACLE_85: Prepared: on connection 1&lt;BR /&gt;
SELECT  "YEAR", "QUARTER", "MONTH", "DAY", "DAY_ID" FROM "OLAPTST1"."SDTIME"&lt;BR /&gt;
&lt;BR /&gt;
ORACLE_86: Executed: on connection 1&lt;BR /&gt;
SELECT statement  ORACLE_85&lt;BR /&gt;
&lt;BR /&gt;
Maybe that's what you are seeing?</description>
      <pubDate>Thu, 10 Feb 2011 14:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70576#M20305</guid>
      <dc:creator>MEnder</dc:creator>
      <dc:date>2011-02-10T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OLAP Performing Inefficient Queries to Build Dimensions??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70577#M20306</link>
      <description>Thanks for that tip on using the options, I'll include in my code now and see what I get.  We were originally looking directly at the open cursors on the Oracle side.  This will be good to see on the SAS side.</description>
      <pubDate>Thu, 10 Feb 2011 14:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-OLAP-Performing-Inefficient-Queries-to-Build-Dimensions/m-p/70577#M20306</guid>
      <dc:creator>StephenOverton</dc:creator>
      <dc:date>2011-02-10T14:42:35Z</dc:date>
    </item>
  </channel>
</rss>

