<?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: Query on Read table.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365111#M807503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index will be faster to start with,&lt;/P&gt;&lt;P&gt;but if you use BINARY SEARCH addition when you use KEY, then the serach speed will increase considerably.&lt;/P&gt;&lt;P&gt;to use BINARY SEARCH addition in READ statement, the internal table must be sort by the key you are using to search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 13:27:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T13:27:39Z</dc:date>
    <item>
      <title>Query on Read table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365110#M807502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;     I am new to ABAP. I want to know wherether it is better to fire a READ TABLE based on key or index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one would be faster ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365110#M807502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Read table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365111#M807503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index will be faster to start with,&lt;/P&gt;&lt;P&gt;but if you use BINARY SEARCH addition when you use KEY, then the serach speed will increase considerably.&lt;/P&gt;&lt;P&gt;to use BINARY SEARCH addition in READ statement, the internal table must be sort by the key you are using to search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365111#M807503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T13:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Read table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365112#M807504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An INDEXed READ will be faster than a BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 15:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365112#M807504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T15:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Read table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365113#M807505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question does not really make sense, reading with key or index are not equal &lt;/P&gt;&lt;P&gt;options. Usually you will know the key, but rarely the index! The index is only know, if you work inside a loop on the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use search blog and my last name 'boes' there is a blog with extensive runtime measurements!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary search splits to table into halves and reduces this until the correct line is found, &lt;/P&gt;&lt;P&gt;so the runtime grows logarithmically with the size of the table ( N = number of lines).&lt;/P&gt;&lt;P&gt;Standard tables allow binary search, sorted tables have automatically a binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index search jump directly to the wanted line, i.e independent of the table size. Also hashed&lt;/P&gt;&lt;P&gt;reads work like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 21:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365113#M807505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T21:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Read table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365114#M807506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;     Thanks for your suggestions !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 04:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-read-table/m-p/3365114#M807506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T04:57:58Z</dc:date>
    </item>
  </channel>
</rss>

