<?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: Database optimiser in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543273#M1428369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They will soon be gone. We are just investigating for a while still to see that we catch all the "guests" in the "ponits gamer pool". It looks like a "nest" of them...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, basic questions with irrelvant answers are often a symptom of a bias, as are not recognizing correct answers. If they knew their stuff then they would not need to cheat!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2009 11:58:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-21T11:58:07Z</dc:date>
    <item>
      <title>Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543267#M1428363</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;&lt;/P&gt;&lt;P&gt;What is the difference between select * and select upto 1 row ?&lt;/P&gt;&lt;P&gt;Please explain in simple language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 12:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543267#M1428363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-20T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543268#M1428364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the very basic question , please search SDN or press F1 on SELECT and Upto 1 row to understand the concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 12:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543268#M1428364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-20T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543269#M1428365</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;please do find  this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to find out is through sql trace or runtime analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause. If this results in multiple records then only the first one will be returned and therefore may not be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mainly: to read data from the 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns the first record of the result set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 12:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543269#M1428365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-20T12:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543270#M1428366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Harsh  - I moved the ponits to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not only could Sandeep and Subin have easily searched first, but they are the same person "playing" a dishonest ponits-game.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 15:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543270#M1428366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-20T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543271#M1428367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Not only could Sandeep and Subin have easily searched first...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But he did search - search the forum for"subtly". But use a date range of all. We have managed to stop this until now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2009 23:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543271#M1428367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-20T23:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543272#M1428368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;  the same person "playing" a dishonest ponits-game.&lt;/P&gt;&lt;P&gt;nice to know ... because the answer is a bad as the question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question: select * versus select up to n rows&lt;/P&gt;&lt;P&gt;answer: select single versus select up to n rows ... different!&lt;/P&gt;&lt;P&gt;               arguments nonsense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;database optimizer .... not involved in the whole stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 11:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543272#M1428368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-21T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Database optimiser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543273#M1428369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They will soon be gone. We are just investigating for a while still to see that we catch all the "guests" in the "ponits gamer pool". It looks like a "nest" of them...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, basic questions with irrelvant answers are often a symptom of a bias, as are not recognizing correct answers. If they knew their stuff then they would not need to cheat!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 11:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-optimiser/m-p/6543273#M1428369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-21T11:58:07Z</dc:date>
    </item>
  </channel>
</rss>

