<?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: Is there any way to do inner joins that takes less resources? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874604#M345578</link>
    <description>&lt;P&gt;As others already implied, there is no one size fits all when it comes to query optimization.&lt;/P&gt;
&lt;P&gt;Assuming your data is in SAS datasets, some general guidelines though:&lt;/P&gt;
&lt;P&gt;- Use equi-joins when possible&lt;/P&gt;
&lt;P&gt;- Avoid OR&lt;/P&gt;
&lt;P&gt;- Avoid function call in where/on clause&lt;/P&gt;
&lt;P&gt;- If join presumably return a relative small result set, using indexes on join variables may help&lt;/P&gt;
&lt;P&gt;- Allow your process to use as much memory as possible to minimize the use of swapping to spill files.&lt;/P&gt;
&lt;P&gt;- Analyse your query behaviour by using the PROC SQL options &lt;EM&gt;_method&lt;/EM&gt; and &lt;EM&gt;_tree&lt;/EM&gt;, and using the global option FULLSTIMER.&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 06:59:29 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-05-09T06:59:29Z</dc:date>
    <item>
      <title>Is there any way to do inner joins that takes less resources?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874558#M345541</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to do inner join in a way to take less process time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any syntax is greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue Blue&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874558#M345541</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-05-08T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do inner joins that takes less resources?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874561#M345544</link>
      <description>Via hash is one method. &lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/68850192/how-do-you-perform-an-inner-join-using-the-sas-hash-object" target="_blank"&gt;https://stackoverflow.com/questions/68850192/how-do-you-perform-an-inner-join-using-the-sas-hash-object&lt;/A&gt;</description>
      <pubDate>Mon, 08 May 2023 21:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874561#M345544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-08T21:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do inner joins that takes less resources?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874565#M345547</link>
      <description>&lt;P&gt;If you are limiting yourself to SQL then there are no inner join syntax variations that guarantee better performance. It all depends on the volume, structure and cardinality of the tables and data you are joining. Incomplete joins will obviously result in slower performance and incorrect results. Understanding the data you are joining is key to writing efficient SQL inner joins.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 22:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874565#M345547</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-08T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do inner joins that takes less resources?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874597#M345574</link>
      <description>&lt;P&gt;Provide your current code.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 04:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874597#M345574</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-09T04:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do inner joins that takes less resources?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874604#M345578</link>
      <description>&lt;P&gt;As others already implied, there is no one size fits all when it comes to query optimization.&lt;/P&gt;
&lt;P&gt;Assuming your data is in SAS datasets, some general guidelines though:&lt;/P&gt;
&lt;P&gt;- Use equi-joins when possible&lt;/P&gt;
&lt;P&gt;- Avoid OR&lt;/P&gt;
&lt;P&gt;- Avoid function call in where/on clause&lt;/P&gt;
&lt;P&gt;- If join presumably return a relative small result set, using indexes on join variables may help&lt;/P&gt;
&lt;P&gt;- Allow your process to use as much memory as possible to minimize the use of swapping to spill files.&lt;/P&gt;
&lt;P&gt;- Analyse your query behaviour by using the PROC SQL options &lt;EM&gt;_method&lt;/EM&gt; and &lt;EM&gt;_tree&lt;/EM&gt;, and using the global option FULLSTIMER.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 06:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-do-inner-joins-that-takes-less-resources/m-p/874604#M345578</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-05-09T06:59:29Z</dc:date>
    </item>
  </channel>
</rss>

