on ‎2020 Jul 02 4:25 AM
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.
Option Ansi_substring should be set to 'Off' Optimization_goal should be set to 'first-row'
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.
Request clarification before answering.
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'.
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:
SET OPTION PUBLIC.Optimization_goal = 'Response-time'; SELECT * FROM SYS.SYSOPTIONS WHERE "option" = 'Optimization_goal'; user_name,option,setting 'PUBLIC','optimization_goal',Response-time
However, a subsequent ISQL SET statement displays 'First-row':
SET optimization_goal First-row
...you are your own AI 🙂
That's why 'All-rows' has been the default ever since Version 8.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.