<?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: HASHED TABLE vs SORTED TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077192#M96623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no SAP recommendation... it is dependent on your needs.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted tables store records in a "sorted" fashion at all times.  It is faster to search through a sorted table vs a standard table.  But performance is dictated by the amount of records in the internal table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hashed table's performance in reads is NOT dependent on the number of records.  However, it is intended for reads that will return only and only one record.  It uses a "side-table" with a hash algorithm to store off the physical location of the record in the actual internal table.  It is not NECESSARILY sorted/organized in an meaningful order (like a sorted table is).  Please note that changes to a hashed tables records must be managed carefully.  Review SAP's on-help in SE38/80 about managing hashed tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2005 17:34:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-02T17:34:19Z</dc:date>
    <item>
      <title>HASHED TABLE vs SORTED TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077189#M96620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is SAP's recommendation to Developers on using the two types of Internal Tables? Which one is mostly used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 17:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077189#M96620</guid>
      <dc:creator>bala_arunachalam3</dc:creator>
      <dc:date>2005-11-02T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: HASHED TABLE vs SORTED TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077190#M96621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have only full key access, use hashed table.&lt;/P&gt;&lt;P&gt;If you also have partial key access (e.g. loop where), use sorted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mostly used? Standard table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hash and sort algorithm cost a little bit in creation - if you add line by line and just make one read (for every line) later, than you have a lot of overhead. Then standard table, one sort and read with binary search is faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you make table fills (select into table) and have a lot of accesses (on a hugh table), then hashed should be in his best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 17:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077190#M96621</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-11-02T17:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: HASHED TABLE vs SORTED TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077191#M96622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for tables with many records (&amp;gt; 100?), the hashed table access by key will be definitely faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But note: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hashed table allows unique keys only while a sorted table may have non-unique keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the keys are not sorted but hashed, a loop at the hashed table will not regard any order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because only few developers understand the hash concept and, maybe, because nobody knows the hash algorithm and internal hashvalue length used by ABAP, one mighr not fully trust hashing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 17:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077191#M96622</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2005-11-02T17:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: HASHED TABLE vs SORTED TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077192#M96623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no SAP recommendation... it is dependent on your needs.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted tables store records in a "sorted" fashion at all times.  It is faster to search through a sorted table vs a standard table.  But performance is dictated by the amount of records in the internal table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hashed table's performance in reads is NOT dependent on the number of records.  However, it is intended for reads that will return only and only one record.  It uses a "side-table" with a hash algorithm to store off the physical location of the record in the actual internal table.  It is not NECESSARILY sorted/organized in an meaningful order (like a sorted table is).  Please note that changes to a hashed tables records must be managed carefully.  Review SAP's on-help in SE38/80 about managing hashed tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 17:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077192#M96623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: HASHED TABLE vs SORTED TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077193#M96624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do know already the tipps and tricks on performance? Start Transaction SE30 the initial screen contains an according button. &lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;  klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 21:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-vs-sorted-table/m-p/1077193#M96624</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2005-11-02T21:01:47Z</dc:date>
    </item>
  </channel>
</rss>

