Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 3678

is it possible to simulate indexes on table and the benefits?

$
0
0

Hi team,

 

I'm working a bit on Oracle and I discovered a 'nice' function that analyzes a SQL statement and advises you to create an index or not to improve the execution time (see below).

 

I'd like to know if there are any equivalent stuff on Sybase? or is there a way to simulate indexes on a table to see the changes in the execution plan?

 

Thanks

 

 

Sample of Oracle QUICK_TUNE package

 

SQL>EXECDBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,'QUICK_TUNE','SELECT * FROM employees WHERE UPPER(last_name)=''DE HAAN''');

SQL>SETLONG 100000

SQL>SETPAGESIZE 0

SQL>SETHEADING OFF

SQL>SELECTDBMS_ADVISOR.GET_TASK_SCRIPT('QUICK_TUNE') FROMdual;

Rem  SQL Access Advisor: Version 11.2.0.2.0 - Production

Rem

Rem  Username:        HR

Rem  Task:        QUICK_TUNE

Rem  Execution date:

Rem

CREATEINDEX"HR"."EMPLOYEES_IDX$$_00870000"

    ON"HR"."EMPLOYEES"

    (UPPER("LAST_NAME"))

    COMPUTE STATISTICS;


Viewing all articles
Browse latest Browse all 3678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>