Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 nVision Performance Tuning David Kurtz Go-Faster Consultancy Ltd.

Similar presentations


Presentation on theme: "1 nVision Performance Tuning David Kurtz Go-Faster Consultancy Ltd."— Presentation transcript:

1 1 nVision Performance Tuning David Kurtz Go-Faster Consultancy Ltd.

2 2 nVision Performance Options Match Indexes to Analysis Criteria Oracle: choice of optimiser

3 3 PS/nVision ledger analysis - special processing drill down –unroll roll-up reporting analysis by attribute –attribute held in a tree TREESELECTnn generate matrix

4 4 nVision ->options Show Report SQL –See each SQL before it is executed SQL Trace Oracle Trace 3-tier PSQRYSRV –from PT 7.54, 7.05

5 5 Show Report SQL Window appears just before the SQL that is contains is executed.

6 6 SQL Statement SELECT L1.TREE_NODE_NUM, A.DEPTID, SUM(A.POSTED_TOTAL_AMT) FROM PS_LEDGER A, PSTREESELECT06 L, PSTREESELECT06 L1 WHERE A.LEDGER='ACTUALS' AND A.FISCAL_YEAR=1995 AND A.ACCOUNTING_PERIOD BETWEEN 1 AND 12 AND A.BUSINESS_UNIT='M04' AND L.SELECTOR_NUM=214 AND A.ACCOUNT>= L.RANGE_FROM_06 AND A.ACCOUNT <= L.RANGE_TO_06 AND (L.TREE_NODE_NUM BETWEEN AND OR L.TREE_NODE_NUM BETWEEN AND ) AND L1.SELECTOR_NUM=216 AND A.PRODUCT=L1.RANGE_FROM_06 AND L1.TREE_NODE_NUM BETWEEN AND AND A.DEPTID IN ('21200', '21300', '21401', '31000') AND A.CURRENCY_CD=USD' AND A.STATISTICS_CODE=' ' GROUP BY L1.TREE_NODE_NUM, A.DEPTID

7 7 Which trees SELECT L1.TREE_NODE_NUM, A.DEPTID, SUM(A.POSTED_TOTAL_AMT) FROM PS_LEDGER A, PSTREESELECT06 L, PSTREESELECT06 L1 WHERE A.LEDGER='ACTUALS' AND A.FISCAL_YEAR=1995 AND A.ACCOUNTING_PERIOD BETWEEN 1 AND 12 AND A.BUSINESS_UNIT='M04' AND L.SELECTOR_NUM=214 AND A.ACCOUNT>= L.RANGE_FROM_06 AND A.ACCOUNT <= L.RANGE_TO_06 AND (L.TREE_NODE_NUM BETWEEN AND OR L.TREE_NODE_NUM BETWEEN AND ) AND L1.SELECTOR_NUM=216 AND A.PRODUCT=L1.RANGE_FROM_06 AND L1.TREE_NODE_NUM BETWEEN AND AND A.DEPTID IN ('21200', '21300', '21401', '31000') AND A.CURRENCY_CD=USD' AND A.STATISTICS_CODE=' ' GROUP BY L1.TREE_NODE_NUM, A.DEPTID

8 8 Which trees Use selector numbers from query to identify trees select * from pstreeselctl where selector_num in(214,216) SETID TREE_NAME EFFDT VERSION SELECTOR_NUM SELECTOR_ T LENGTH MFG MFG_PRODUCTS 01-JAN AUG-99 R 6 MFG ACCTROLLUP 01-JAN AUG-99 R 6

9 9 Without performance options

10 10 With performance options

11 11 Security for performance options

12 12 nVision Performance Options

13 13 Resultant SQL SELECT L1.TREE_NODE_NUM, A.DEPTID, SUM(A.POSTED_TOTAL_AMT) FROM PS_LEDGER A, PSTREESELECT06 L1 WHERE A.LEDGER='ACTUALS' AND A.FISCAL_YEAR=1995 AND A.ACCOUNTING_PERIOD BETWEEN 1 AND 12 AND A.BUSINESS_UNIT='M04' AND (A.ACCOUNT='400000' OR A.ACCOUNT BETWEEN '401000' AND '403000' OR A.ACCOUNT='410000' OR A.ACCOUNT='420000' OR A.ACCOUNT='499999') AND L1.SELECTOR_NUM=216 AND A.PRODUCT=L1.RANGE_FROM_06 AND L1.TREE_NODE_NUM BETWEEN AND AND A.DEPTID IN ('21200', '21300', '21401', '31000') AND A.CURRENCY_CD='USD' AND A.STATISTICS_CODE=' ' GROUP BY L1.TREE_NODE_NUM, A.DEPTID

14 14 Appropriate Index LEDGERsingle value FISCAL_YEARsingle value ACCOUNTING_PERIODrange of values BUSINESS_UNITone value ACCOUNTsome values/ranges PRODUCTequi-joined to L1 DEPTID some values CURRENCY_CD one value STATISTICS_CODE one value grouped by L1.TREE_NODE_NUM, DEPTID

15 15 Appropriate Index FISCAL_YEARsingle value DEPTID some values LEDGERsingle value BUSINESS_UNITsingle value PRODUCTequi-joined to L1 ACCOUNTsome values/ranges CURRENCY_CD single value STATISTICS_CODE single value ACCOUNTING_PERIODrange of values grouped by L1.TREE_NODE_NUM, DEPTID

16 16 Oracle Optimiser Mode Queries are flat - no correlated sub-queries Rule based optimiser follows the links Cost based optimiser, sometimes doesnt GL nVision queries perform well under Cost Base Optimiser

17 17 If using Oracle Rule Based Optimiser Rename PSTREESELECTnn to PSTREESELECTnn_TBL CREATE VIEW PSTREESELECTnn AS SELECT /*+ALL_ROWS*/ * FROM PSTREESELECTnn_TBL

18 18 If using Oracle 8.x The Cost Based Optimiser in invoked by –Parallelism –Partitioning

19 19 Non-Ledger queries Query is defined in PS/Query

20 20 nVision Performance Options Match Indexes to Analysis Criteria Oracle: choice of optimiser non-GL queries are different

21 21 nVision Performance Tuning David Kurtz Go-Faster Consultancy Ltd.


Download ppt "1 nVision Performance Tuning David Kurtz Go-Faster Consultancy Ltd."

Similar presentations


Ads by Google