<?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: SQL Anywhere 16 performance issue with proxy tables in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830722#M4861565</link>
    <description>&lt;P&gt;Finaly I found the solution. By preparing testdata and comparing the DBs I found one difference between a new created DB and my production DB:&lt;/P&gt;
&lt;P&gt;I don't now why, but in my production DB there was this option (perhaps from older updates):&lt;/P&gt;
&lt;P&gt;SET OPTION "PUBLIC"."optimization_goal"='Response-time';&lt;/P&gt;
&lt;P&gt;After the change to (the DEFAULT value):&lt;/P&gt;
&lt;P&gt;SET OPTION "PUBLIC"."optimization_goal"='All-rows';&lt;/P&gt;
&lt;P&gt;Now my DB is fast again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2013 08:24:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-12-17T08:24:00Z</dc:date>
    <item>
      <title>SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaq-p/13830721</link>
      <description>&lt;P&gt;I have a table A in my main-db (primary key ID) and table B in a proxy-db. 
From my table A I can access table B via proxy. The performance is ok.&lt;/P&gt;
&lt;P&gt;If I make a joined select using these two tables I get a strange performance issue:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Select a.id, a.number, b.description from a,b where a.id = b.id order by a.id&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;run very, very slow (in my case up to 60 sec!!!)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Select a.id, a.number, b.description from a,b where a.id = b.id order by a.id, b.description&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;runs "normal" fast (less then 1 sec)&lt;/P&gt;
&lt;P&gt;This means: If I order via the primary key of table A, it is slow, if I order by another field (or add another field to the primary key) it is much faster&lt;/P&gt;
&lt;P&gt;Does anybody else has this issue? Is there something wrong with by select-statement? Or is it a known bug?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 04:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaq-p/13830721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T04:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830723#M4861566</link>
      <description>&lt;P&gt;Can you provide execution plans for the two statements?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830723#M4861566</guid>
      <dc:creator>MCMartin</dc:creator>
      <dc:date>2013-12-13T06:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830724#M4861567</link>
      <description>&lt;P&gt;Which information from the execution planyyou exactly need (a lot of informations) and how I can provide these informations here in the forum?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830724#M4861567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T06:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830725#M4861568</link>
      <description>&lt;P&gt;FWIW, "Remote data access debugging" (aka setting the &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbadmin/dboptions-s-5821452.html"&gt;CIS_OPTION&lt;/A&gt; might give a clue what part of the statement is sent to the remote server, so you might found out that way &lt;EM&gt;why&lt;/EM&gt; the performance is so different...&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830725#M4861568</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-12-13T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830726#M4861569</link>
      <description>&lt;P&gt;I tried to upload the execution plans. But I need 100 reputation points for uploading &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I noticed some very strange things at the Table Scan page:&lt;/P&gt;
&lt;P&gt;Slow SELECT (order by primary key):
Rows Returndd: 100 / 43129 / 6.4694e+006 (="Tatsächlich(Gesamt")&lt;/P&gt;
&lt;P&gt;Fast SELECT (oder by primary key,second field):
Rows returned: 100 / 43129 / 3. column missing&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830726#M4861569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T06:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830727#M4861570</link>
      <description>&lt;P&gt;Strange! Both SELECTS have nearly the same output. &lt;/P&gt;
&lt;P&gt;The fast SELECT:
The Remote Statement for vt_1 is &lt;/P&gt;
&lt;P&gt;select fahrzeug.ZulassungsKz,fahrzeug.FahrzeugID from Fahrzeug&lt;/P&gt;
&lt;P&gt;Execute (Proxy): 
SELECT t2."ZulassungsKz" , t2."FahrzeugID" FROM "bungert"."Fahrzeug" t2&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;The slow SELECT:
The Remote Statement for vt_1 is &lt;/P&gt;
&lt;P&gt;select fahrzeug.ZulassungsKz,fahrzeug.FahrzeugID from Fahrzeug
Execute (Proxy):
SELECT t2."ZulassungsKz" , t2."FahrzeugID" FROM "bungert"."Fahrzeug" t2&lt;BR /&gt;
Execute (Proxy): 
SELECT t2."ZulassungsKz" , t2."FahrzeugID" FROM "bungert"."Fahrzeug" t2&lt;BR /&gt;
Execute (Proxy): 
SELECT t2."ZulassungsKz" , t2."FahrzeugID" FROM "bungert"."Fahrzeug" t2&lt;BR /&gt;
.
.
.&lt;/P&gt;
&lt;P&gt;These two lines are repeated a countless time!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 07:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830727#M4861570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830728#M4861571</link>
      <description>&lt;P&gt;What DBMS is holding the remote table? Please show us your proxy table definition AND the remote table definition.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 09:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830728#M4861571</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-12-13T09:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830729#M4861572</link>
      <description>&lt;P&gt;Both are SQL Anywhere 16 databases. I'm out-of-the-office now and will provide the informations at Monday.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 10:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830729#M4861572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830722#M4861565</link>
      <description>&lt;P&gt;Finaly I found the solution. By preparing testdata and comparing the DBs I found one difference between a new created DB and my production DB:&lt;/P&gt;
&lt;P&gt;I don't now why, but in my production DB there was this option (perhaps from older updates):&lt;/P&gt;
&lt;P&gt;SET OPTION "PUBLIC"."optimization_goal"='Response-time';&lt;/P&gt;
&lt;P&gt;After the change to (the DEFAULT value):&lt;/P&gt;
&lt;P&gt;SET OPTION "PUBLIC"."optimization_goal"='All-rows';&lt;/P&gt;
&lt;P&gt;Now my DB is fast again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830722#M4861565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-17T08:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830730#M4861573</link>
      <description>&lt;P&gt;Gratulation, that's "proxy debugging the hard way"...&lt;/P&gt;
&lt;P&gt;BTW, 'Response-time' is an undocumented value for that option, possibly semantially equal to 'First-row'.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830730#M4861573</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-12-17T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830731#M4861574</link>
      <description>&lt;P&gt;Correct. I checked the code and 'Response-time' is equivalent to 'First-row' and 'Resource-consumption' is equivalent to 'All-rows'.&lt;/P&gt;
&lt;P&gt;I wasn't sure why the aliases for each existed... so I looked at the history of the code and it looks like historically the option started with 'Response-time' and 'Resource-consumption' as the only valid options (in early 1999) and then 'First-row' and 'All-rows' were added almost two years later as aliases (in late 2000).  I would imagine that first-row and all-rows are easier to understand and is why these two are the only ones mentioned in the documentation now.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830731#M4861574</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-12-17T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere 16 performance issue with proxy tables</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830732#M4861575</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I would imagine that first-row and all-rows are easier to understand &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I share that impression:)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-16-performance-issue-with-proxy-tables/qaa-p/13830732#M4861575</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-12-17T09:27:31Z</dc:date>
    </item>
  </channel>
</rss>

