<?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: The SQL tuning checklist in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438442#M13527</link>
    <description>&lt;P&gt;My experiences closely match those described in the paper;)&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 17:30:56 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2018-02-19T17:30:56Z</dc:date>
    <item>
      <title>The SQL tuning checklist</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/118118#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: windowtext; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;The SQL query had been running for 36 hours before it was killed. The project team is panicking. The customer is upset. What can you, a SAS® programmer, do to get out of this&lt;BR /&gt;dilemma? Something has to be done, but what?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: windowtext; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Chances are you have been there. You have felt the pain. You have lived through the helplessness and fear of imminent failure. &lt;BR /&gt;&lt;BR /&gt;Fortunately, it is possible to get out of this mess. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;A SAS colleagues, Tatyana Petrova, and Jeff Bailey wrote &lt;/SPAN&gt;&lt;A href="http://www.sas.com/apps/sim/redirect.jsp?detail=SIM112047_5418"&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;a SAS Global Forum 2013 paper&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: windowtext; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;that shows&lt;/SPAN&gt;&lt;SPAN style="color: windowtext; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; show you the steps (and the mindset) required to solve this all-too-common problem. Th&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="color: windowtext; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; paper includes examples from DB2, Greenplum, Oracle, and Teradata.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;I want to know about your experiences with such situations. What have you done to resolve them?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 19:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/118118#M1419</guid>
      <dc:creator>Michael_SAS</dc:creator>
      <dc:date>2013-08-21T19:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: The SQL tuning checklist</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438442#M13527</link>
      <description>&lt;P&gt;My experiences closely match those described in the paper;)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438442#M13527</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-02-19T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: The SQL tuning checklist</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438889#M13533</link>
      <description>&lt;P&gt;90%+ of such performance issues I've encountered where about the basics like:&lt;/P&gt;
&lt;P&gt;- heterogeneous joins&lt;/P&gt;
&lt;P&gt;- usage of SAS functions which didn't allow for in-database processing&lt;/P&gt;
&lt;P&gt;- "bad" designs creating a lot of data movement between the DB and SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The rest was often about tweaking the SQL, creating indices, using hints. And the remaining less than one percent is then what causes the real pain and there the reasons for bad performance can be "anything".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh, and last but not least: It's amazing how many sites don't change&amp;nbsp;default settings&amp;nbsp;for connection options like insertbuff and dbcommit - and changing these defaults allows often for significant "quick wins".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 08:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438889#M13533</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-02-21T08:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: The SQL tuning checklist</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438922#M13536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my favorite SAS-side fix...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/DBIDIRECTEXEC-GOFAST-YES-for-Database-Processing/ta-p/342717/jump-to/first-unread-message" target="_self"&gt;DBIDIRECTEXEC: GOFAST=YES for Database Processing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen this take a SAS job from hours to seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many of the database problems involve gathering statistics on the database tables, well designed partitions, and proper indexing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 13:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/438922#M13536</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-02-21T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: The SQL tuning checklist</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/439989#M13570</link>
      <description>&lt;P&gt;I had a recent experience where simply changing the ODBC driver being used to query an SQL Server database using SQL passthru reduced the query time from over an hour to less than 3 seconds!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The clue here was the identical query in SQL Server Studio it was taking just a few seconds also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess the moral of this story is the value of comparing the query in another tool then trying to figure out what is different.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 22:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/The-SQL-tuning-checklist/m-p/439989#M13570</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-02-24T22:03:55Z</dc:date>
    </item>
  </channel>
</rss>

