<?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: Unused index during left join in proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890682#M351930</link>
    <description>&lt;P&gt;It may help to answer such a question by providing the log with the code and all the notes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And indicate which data set(s) have index on which variable(s).&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 22:11:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-08-23T22:11:12Z</dc:date>
    <item>
      <title>Unused index during left join in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890660#M351929</link>
      <description>Does anyone know why during left join in roc SQL T1 (medium size table around 80k rows) and T2 (very large table with 3bln rows) Sas doesn't use index?&lt;BR /&gt;But during inner join proc SQL it uses index and performance is great.&lt;BR /&gt;I've used MSGLEVEL=I option to see what's happening in log.</description>
      <pubDate>Wed, 23 Aug 2023 20:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890660#M351929</guid>
      <dc:creator>JanKwiatkowski</dc:creator>
      <dc:date>2023-08-23T20:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unused index during left join in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890682#M351930</link>
      <description>&lt;P&gt;It may help to answer such a question by providing the log with the code and all the notes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And indicate which data set(s) have index on which variable(s).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 22:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890682#M351930</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-23T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unused index during left join in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890703#M351944</link>
      <description>&lt;P&gt;You can also add the undocumented PROC SQL options&lt;EM&gt; _method&lt;/EM&gt; and &lt;EM&gt;_tree&lt;/EM&gt; to get more details on how PROC SQL is evaluating the query.&lt;/P&gt;
&lt;P&gt;The optimal would a hash join, which requires that your left table fits into memory and uses index on the right table for the join criteria. You can affect the optimizer to chose this by adjusting the BUFFERSIZE option, but you cannnot force it.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unused-index-during-left-join-in-proc-sql/m-p/890703#M351944</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-08-24T07:45:35Z</dc:date>
    </item>
  </channel>
</rss>

