<?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>Question Re: Database option optimization_goal value after upgrading database from version 9 to 17 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822084#M4852927</link>
    <description>&lt;P&gt;Dug into code ... no justification from me ... and no idea why these alternate names exist ... but they've been there since October 2000 (last century). Perhaps you have provided a good reason as to why they aren't documented.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2020 11:10:57 GMT</pubDate>
    <dc:creator>jack_schueler</dc:creator>
    <dc:date>2020-07-03T11:10:57Z</dc:date>
    <item>
      <title>Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaq-p/13822077</link>
      <description>&lt;P&gt;I upgraded an SQL Anywhere 9 database to the latest SQL Anywhere 17.0.10.6089 database.
I know from the past that we need to check 2 options for our applications to run properly.&lt;/P&gt;
&lt;PRE&gt;Option Ansi_substring should be set to 'Off'
Optimization_goal should be set to 'first-row' 
&lt;/PRE&gt;

&lt;P&gt;But after I upgraded the database and looked into the optimization_goal current value it is set to 'Response-time'. Is this a new valid value? I can't find anything in the help file or online documentation on this.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaq-p/13822077</guid>
      <dc:creator>fvestjens</dc:creator>
      <dc:date>2020-07-02T03:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822078#M4852921</link>
      <description>&lt;P&gt;Searching within this forum is of help (and other search results might really anser your question):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sqlanywhere-forum.sap.com/questions/5695"&gt;Optimization_goal = 'Response-time'&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;IMVHO, this really just seems to be a synonym. You want to optimize the response time for the user waiting for the first results, right?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822078#M4852921</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-07-02T03:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822079#M4852922</link>
      <description>&lt;P&gt;As far as I can tell 'Response-time' has never been documented for optimization_goal since the option was introduced in V7 where the default was 'first-row'.&lt;/P&gt;
&lt;P&gt;However it does appear that 'Response-time' is a synonym for 'First-row'... it's accepted by a V17 SET OPTION statement and it does get stored in the SYSOPTION table:&lt;/P&gt;
&lt;PRE&gt;SET OPTION PUBLIC.Optimization_goal = 'Response-time';
SELECT * FROM SYS.SYSOPTIONS WHERE "option" = 'Optimization_goal';
user_name,option,setting
'PUBLIC','optimization_goal',Response-time
&lt;/PRE&gt;

&lt;P&gt;However, a subsequent ISQL SET statement displays 'First-row':&lt;/P&gt;
&lt;PRE&gt;SET
optimization_goal   First-row
&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;
In your case the value 'Response-time' was probably carried forward by the upgrade process... there's no "AI" component in the upgrade that can decide "No, they really don't want the old value, they really want to change it to something better"...&lt;P&gt;&lt;/P&gt;
&lt;P&gt;...you are your own AI &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;
For many (most?) applications, the application code DOES NOT receive and process (display) the first row of a large result set before the server has retrieved all the rows. Instead, the application does not display anything until the server has finished building the whole result set, and 'All-rows' is the value you want.&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That's why 'All-rows' has been the default ever since Version 8.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://help.sap.com/viewer/61ecb3d4d8be4baaa07cc4db0ddb5d0a/17.0/en-US/818e6bb96ce21014af66acf199674dbc.html?q=OPTIMIZATION_GOAL"&gt;&lt;B&gt;Tip: Choose the optimizer goal&lt;/B&gt;&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822079#M4852922</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2020-07-02T09:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822081#M4852924</link>
      <description>&lt;P&gt;Yes. When we switch to all-rows users are complaining about performance of the application&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822081#M4852924</guid>
      <dc:creator>fvestjens</dc:creator>
      <dc:date>2020-07-02T10:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822082#M4852925</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;You want to optimize the "response time" for the user waiting for the "first results", right?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;FWIW, I just had tried to make pun on the "synonym" goals of both options, it was no actual question...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822082#M4852925</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-07-02T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822080#M4852923</link>
      <description>&lt;P&gt;The equivalent optimization goal names.&lt;/P&gt;
&lt;P&gt;Response-time == First-row&lt;/P&gt;
&lt;P&gt;Resource-consumption == All-rows&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 10:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822080#M4852923</guid>
      <dc:creator>jack_schueler</dc:creator>
      <dc:date>2020-07-03T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822083#M4852926</link>
      <description>&lt;P&gt;I presume you dug into the code, and thank you for that...&lt;/P&gt;
&lt;P&gt;...or did you find actual documentation?&lt;/P&gt;
&lt;P&gt;For the record...&lt;/P&gt;
&lt;P&gt;IMO the term "Response-time" is &lt;B&gt;hugely misleading&lt;/B&gt; because it implies the setting has a direct effect on the response time experienced by end users. That may be true for an application that presents the first row without waiting for the entire result set to be retrieved, but the &lt;B&gt;opposite&lt;/B&gt; is true for an application that presents the result set after all rows have been retrieved (e.g., every PowerBuilder DataWindow application ever written &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The terms "First-row" and "All-rows" are more useful and accurate because they describe what the server is doing. The server does not (and cannot) know what the application is doing with the data.&lt;/P&gt;
&lt;P&gt;Note: First-row has no effect on many queries; e.g., SELECT COUNT(*).&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 10:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822083#M4852926</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2020-07-03T10:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Database option optimization_goal value after upgrading database from version 9 to 17</title>
      <link>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822084#M4852927</link>
      <description>&lt;P&gt;Dug into code ... no justification from me ... and no idea why these alternate names exist ... but they've been there since October 2000 (last century). Perhaps you have provided a good reason as to why they aren't documented.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 11:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/database-option-optimization-goal-value-after-upgrading-database-from/qaa-p/13822084#M4852927</guid>
      <dc:creator>jack_schueler</dc:creator>
      <dc:date>2020-07-03T11:10:57Z</dc:date>
    </item>
  </channel>
</rss>

