<?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: First Query in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843970#M4874813</link>
    <description>&lt;P&gt;Well, given the 1 GB default initial cache size&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;1029920K of memory used for caching&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and a rather low disk fragmentation&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Performance warning: Database file "c:intesigoba-obaMirassolbdintesig.db" consists of 3 disk fragments&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't think the &lt;STRONG&gt;cache size&lt;/STRONG&gt; is the problem.&lt;/P&gt;
&lt;P&gt;Does the slow execution also show up if you run "call sa_flush_cache()" before each query execution? - Then at least the problem may be due to a better usage of the &lt;STRONG&gt;cache contents&lt;/STRONG&gt; for further runs...&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2013 07:50:49 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2013-01-11T07:50:49Z</dc:date>
    <item>
      <title>First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaq-p/13843955</link>
      <description>&lt;P&gt;After starting the database when the first query takes longer to run. For example, a simple query to get the date of the last sale, after this consultation the other run faster:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="nb"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;max&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;date_sale&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;as&lt;/SPAN&gt; &lt;SPAN class="n"&gt;data_sale&lt;/SPAN&gt; &lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;where&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt;
&lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;sale&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;sale&lt;/SPAN&gt;
&lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;type&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;5&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;or&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="nb"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;max&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;date_sale&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;as&lt;/SPAN&gt; &lt;SPAN class="n"&gt;data_sale&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;key&lt;/SPAN&gt; &lt;SPAN class="nb"&gt;join&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;where&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; 
&lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;type&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;5&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;or &lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="nb"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;max&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;date_sale&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;as&lt;/SPAN&gt; &lt;SPAN class="n"&gt;data_sale&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;
&lt;SPAN class="nb"&gt;join&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt; &lt;SPAN class="n"&gt;on&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;sale&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;sale&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;where&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emp&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="ow"&gt;and&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tbsales_tribute&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;type&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;5&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Which of these queries is more optimized?&lt;/P&gt;
&lt;P&gt;(a friend told me that we should always use the sybase key join instead of join, key join the reserved word always makes the query more optimized, so pe truth? where I can find material about?)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 07:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaq-p/13843955</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-09T07:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843956#M4874799</link>
      <description>&lt;P&gt;Walmir - how much memory have your machine and what is your command line to start server/db? if you have problem on first query after restart (and after that everything is fine), then it may be that on start there is in use to small -c XXX parameter for memory cache.&lt;/P&gt;
&lt;P&gt;Have you tried to use Index Consultant (you can see as menu option it in ISQL)? Have you created all indexed suggested by Index Consultant?&lt;/P&gt;
&lt;P&gt;An what is your version of ASA? i.e. ASA.12.0.1.XXXX&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 05:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843956#M4874799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-10T05:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843957#M4874800</link>
      <description>&lt;P&gt;The three queries are equivalent for the optimizer and the execution part. You may need additional indexes and/or cache warming. Check the first query execuion using the Index Consultant and the Plan Viewer.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 05:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843957#M4874800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-10T05:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843961#M4874804</link>
      <description>&lt;P&gt;FWIW: "JOIN" and "KEY JOIN" are sematically identical if you don't specify a join condition (i.e. a " ON ...") afterwards. &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbusage/key-joins-aspen.html"&gt;From the docs&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Key join is the default in SQL Anywhere when all the following apply:&lt;BR /&gt;
* the keyword JOIN is used.&lt;BR /&gt;
* the keywords CROSS, NATURAL or KEY are not specified.&lt;BR /&gt;
* there is no ON clause.&lt;BR /&gt;
&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may tell that your friend.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 06:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843961#M4874804</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-10T06:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843958#M4874801</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Queries run slower after the database restart for the simple and obvious reason: you need to load data from HDD to RAM, which takes time.&lt;/LI&gt;
&lt;LI&gt;SA is smart, so simple playing with query text won't change anything.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 10 Jan 2013 06:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843958#M4874801</guid>
      <dc:creator>former_SQLA_member1694880</dc:creator>
      <dc:date>2013-01-10T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843962#M4874805</link>
      <description>&lt;P&gt;&lt;A href="https://sqlanywhere-forum.sap.com/users/871/jonjon/"&gt;@JonJon&lt;/A&gt;
Database test.
I am using the ASA Database Engine Version 9.0.2.3951&lt;/P&gt;
&lt;P&gt;-ch 2048M&lt;/P&gt;
&lt;P&gt;tbsales the table has a clustered index&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CLUSTERED&lt;/SPAN&gt; &lt;SPAN class="n"&gt;INDEX&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"idx_datesale"&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ON&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"DBA"&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"TBsales"&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"EMP"&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ASC&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"DATE_SALE"&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ASC&lt;/SPAN&gt; &lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IN&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"SYSTEM"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Intel(R) core(TM) i3 CPU 550 @3.20GHz
4 GB
SO 64 Bits&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 09:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843962#M4874805</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-10T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843963#M4874806</link>
      <description>&lt;P&gt;Ok .. I'm reading the documentation and I will pass on to my friend this link.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 10:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843963#M4874806</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-10T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843964#M4874807</link>
      <description>&lt;P&gt;One should add that v9.0.1 introduced &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbusage/perform-s-4988196.html"&gt;"cache warming"&lt;/A&gt;, i.e. the server automatically reloads the pages that have been used immediately after the database was started the last time. That may help if the same queries are typically run every time the database is loaded, say, if an according application would usually use the same queries to prefetch data... However, it won't help much in cases where queries are not that homogeneous.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 10:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843964#M4874807</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-10T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843965#M4874808</link>
      <description>&lt;P&gt;What does dbsrv9 -o MyLog.txt reveal when the database is started - how much cache is used by default (as you don't specify this via -c)?&lt;/P&gt;
&lt;P&gt;If this is much lower than the 2 GB limit you have set with -ch, I'd second Jon's suggestion to add -c XM...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 10:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843965#M4874808</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-10T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843959#M4874802</link>
      <description>&lt;P&gt;Walmir,&lt;/P&gt;
&lt;P&gt;I will probably suggest you to start your engine using something like -c 1600M or a bit smaller (depending on size of your DB - if your DB is less that 1 GB then at least with -c SSSSM where SSS= size of db file). Now you are starting with -c 32M by default...&lt;/P&gt;
&lt;P&gt;What is your OS? Win? Linux? it was a bit long time ago, but in ASA version 9 there was some limitations for use of memory depending on OS.&lt;/P&gt;
&lt;P&gt;You do not like to move to version 10 or current version 12? Or at least  to ASA 9.0.2 ? There was quite many limitations in 9.0.1 ( &lt;A href="http://www.sybase.com/detail?id=1023009"&gt;http://www.sybase.com/detail?id=1023009&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Still, I may recommend to use Index Consultant (In ASA 9 it was menu in Sybase Central). look page 69 &lt;A href="http://download.sybase.com/pdfdocs/awg0901e/dbugen9.pdf"&gt;http://download.sybase.com/pdfdocs/awg0901e/dbugen9.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843959#M4874802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-10T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843966#M4874809</link>
      <description>&lt;P&gt;As I understand Walmir's response, he is using 9.0.2...&lt;/P&gt;
&lt;P&gt;I'm not sure about the 32M default - the default is documented as following (here for v8):&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If no -c  option is provided, the database server computes the initial cache allocation as follows:&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;It uses the following operating-system-specific default cache sizes:&lt;BR /&gt;
...Windows NT/2000/XP, Windows 95/98/Me, NetWare     2 Mb&lt;BR /&gt;
...&lt;/P&gt;
&lt;P&gt;It computes a runtime-specific minimum default cache size, which is the lesser of the following items:&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;25% of the machine's physical memory&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;The sum of the sizes of the main database files specified on the command line. Additional dbspaces apart from the main database files are not included in the calculation. If no files are specified, this value is zero.&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;It allocates the greater of the two values computed.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So the default cache size will be dependent on the database file size and the current RAM (which is rather huge for v9 here with 4 GB)...&lt;/P&gt;
&lt;P&gt;I'd recommend Walmir to show us the server's start output...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843966#M4874809</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-10T12:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843967#M4874810</link>
      <description>&lt;P&gt;That being said, I'd still second your suggestion to explicitly set -c=xxxM ...:)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843967#M4874810</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-10T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843968#M4874811</link>
      <description>&lt;P&gt;You are right, sorry, my mistake&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843968#M4874811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-10T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843969#M4874812</link>
      <description>&lt;P&gt;The version of Sybase ASA and ASE 12 is?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843969#M4874812</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-11T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843970#M4874813</link>
      <description>&lt;P&gt;Well, given the 1 GB default initial cache size&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;1029920K of memory used for caching&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and a rather low disk fragmentation&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Performance warning: Database file "c:intesigoba-obaMirassolbdintesig.db" consists of 3 disk fragments&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't think the &lt;STRONG&gt;cache size&lt;/STRONG&gt; is the problem.&lt;/P&gt;
&lt;P&gt;Does the slow execution also show up if you run "call sa_flush_cache()" before each query execution? - Then at least the problem may be due to a better usage of the &lt;STRONG&gt;cache contents&lt;/STRONG&gt; for further runs...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843970#M4874813</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-11T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843971#M4874814</link>
      <description>&lt;P&gt;I did a survey of some procedures to be performed / executed and followed the following steps:&lt;/P&gt;
&lt;P&gt;• Change "Page Size":
• Create a new database with 4096 bytes "Page Size".
• Make unload / reload
• Execute the command in isql: ALTER system dbspace ADD 512 MB;&lt;/P&gt;
&lt;P&gt;• Reduce fragmentation:
• If possible, place the database in a single partition on the hard drive.
• Often run the disk defragmenter for Windows.
• Defragment the file BDINTESIG.db when fragmented disks. (use the command in DOS: contig.exe "full_path_of_the_database")&lt;/P&gt;
&lt;P&gt;• Cache Size
• When starting the database using 2M cache and use the options "-1024M ch" (changed to this step-c2048M) 50% of RAM)&lt;/P&gt;
&lt;P&gt;• Clear statistics
• Run script to delete and recreate statistics.&lt;/P&gt;
&lt;P&gt;Running  "call sa_flush_cache()" still has slow, (only the first query)&lt;/P&gt;
&lt;P&gt;***When I start the database with-c2048M displays the following message:&lt;/P&gt;
&lt;P&gt;Note: A cache size of 2097152K exceeds the available physical memory of 1739876K. A performance penalty may result.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 08:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843971#M4874814</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-11T08:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843972#M4874815</link>
      <description>&lt;P&gt;latest ASA (SQL Anywhere) is 12.0.1 XXXXX&lt;/P&gt;
&lt;P&gt;latest ASE is 15.7&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 09:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843972#M4874815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T09:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843973#M4874816</link>
      <description>&lt;P&gt;To assign 50 percent of the available RAM you might use &lt;B&gt;-c 50P&lt;/B&gt;.&lt;BR /&gt; Trying 2 GB or more won't do, if you're in a 32 bit environment. The ASA engine can't allocate more than ~ 1.8 GB due to the OS limits.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843973#M4874816</guid>
      <dc:creator>reimer_pods</dc:creator>
      <dc:date>2013-01-11T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843974#M4874817</link>
      <description>&lt;P&gt;ok. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843974#M4874817</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-01-11T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: First Query</title>
      <link>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843975#M4874818</link>
      <description>&lt;P&gt;Time to show the graphical plans of the slow and fast query executions, I'd think...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/first-query/qaa-p/13843975#M4874818</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-01-11T12:23:55Z</dc:date>
    </item>
  </channel>
</rss>

