<?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: SQL Trace - Indexing table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984179#M951793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to Check if an Index is Used ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Open a second session and choose System ® Utilities ® Performance trace.&lt;/P&gt;&lt;P&gt;The Trace Requests screen appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Select Trace on. &lt;/P&gt;&lt;P&gt;The SQL trace is activated for your user, that is all the database operations under your user are recorded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.In the first window, perform the action in which the index should be used. &lt;/P&gt;&lt;P&gt;If your database system uses a cost-based optimizer, you should perform this action with as representative data as possible. A cost-based optimizer tries to determine the best index based on the statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In the second session, choose Trace off and then Trace list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of the generated output depends on the database system used. You can determine the index that the database used for your action with the EXPLAIN function for the critical statements (PREPARE, OPEN, REPOPEN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if Helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 13:37:21 GMT</pubDate>
    <dc:creator>sachin_mathapati</dc:creator>
    <dc:date>2008-06-18T13:37:21Z</dc:date>
    <item>
      <title>SQL Trace - Indexing table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984177#M951791</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;I have created an index for a standard table. I want to test if the indexing is working properly. I have done a SQL trace on it in a program. Can you tell me how I would understand if the index was properly used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arnab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984177#M951791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace - Indexing table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984178#M951792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Trace Records, keep the cursor on the REOPENu201D, u201COPENu201D,u201DPREPARE statement and click the "Explain" button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give the details of the index used in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984178#M951792</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2008-06-18T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace - Indexing table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984179#M951793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to Check if an Index is Used ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Open a second session and choose System ® Utilities ® Performance trace.&lt;/P&gt;&lt;P&gt;The Trace Requests screen appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Select Trace on. &lt;/P&gt;&lt;P&gt;The SQL trace is activated for your user, that is all the database operations under your user are recorded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.In the first window, perform the action in which the index should be used. &lt;/P&gt;&lt;P&gt;If your database system uses a cost-based optimizer, you should perform this action with as representative data as possible. A cost-based optimizer tries to determine the best index based on the statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In the second session, choose Trace off and then Trace list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of the generated output depends on the database system used. You can determine the index that the database used for your action with the EXPLAIN function for the critical statements (PREPARE, OPEN, REPOPEN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if Helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984179#M951793</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-06-18T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace - Indexing table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984180#M951794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;judging from your basic questions 2 days ago, you made a big step when you create already secondary indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Design design is not so simple, and there was never a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For which table diod you create an index? And what are the fields in the index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that you read the SQL blog now, the index used appears in the EXPLAIN and only there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not see 'PREPARE' and 'OPEN' statements, becuase as an experienced ST05 user&lt;/P&gt;&lt;P&gt;you will execute the program several times ebfore you trace it. Then you should also never see a T001W table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984180#M951794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace - Indexing table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984181#M951795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2007/06/20/abap-trial-version-for-newbies-part-15-how-to-dynamically-create-test-data-for-our-database-table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 10:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-indexing-table/m-p/3984181#M951795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T10:04:46Z</dc:date>
    </item>
  </channel>
</rss>

