Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table HRP1001 (id) Index on Infotype 1001 (Short text) Index Y02(System ID : G1B) (id) This form is to be used when altering indexes or size critical table / indexes. It is to be attached to the development Fields OTYPE
OBJID BEGDA ENDDA SCLAS specification and the CI that will support the promotion of the object to production
Unique index ?
CI "Major Risk"
(See Summary of changes)
Blue items requires validation by Basis when the change is initiated. For that purpose, the requester must post a myRequest with the current document attached.
for new large tables or indexes, to be provided by CD for existing tables/indexes : prod size to be provided by Basis AOA AMS EUR Center X
Class: /GLB/CL_7GTIR_DPR_ROL_GENERAL Method: GET_EMAIL_IDS Description: Data will be selected from table HRP1001 on the basis of fields OTYPE OBJID BEGDA ENDDA SCLAS among of which the last field is not part of the primary key and also the minimum requirement of the primary key fields are not available during the selection.therefore index needs to be created.
Summary of change (help to decide if CI to be classified as Major Risk) Description of the change : Comment Special care for large table or index creation Special care for large table alteration (potentially large table with field definition changed, table conversion required) Relocation required (potentially large new table / indexes). Table space must exists (TS creation may be part of the change)
index maintenance generates overloads in table maintenance overlapping indexes creates complexity for the optimizer and may conduct to impredictable access strategy for the optimizer sizing and performance considerations in the where clause of selects, use fields in the index usage of first positions fields of the indexes must be promoted in where clause, use fields not pertaining to indexes only if other field of the where clause are very restrictive Indexes creation should clearly respond to understandable access strategy or even better, business processes. The standard indexes are optimized for SAP standard coding and should not be changed unless notified by SAP
Design Implementation
for similar statements in order to make indexes reusable if the program already knows values of fields that could be added to the where clause in order to use an existing index if it is possible to access another table first getting fields for the where clause in order to use an existing index (see also SAP Notes 185530, 187906, 191492) sap notes generally for tables you touch other selects inside abap: are there fields available to make the select more selective ? statistcs update: run stats on the table after every index change before looking at the statements (DB6STATS transaction) if the table is ACTIV=N in DBSTATC for the table, contact Basis to run db2_table_stat_voltables.sh (never run db2 reorgchk or runstats by hand) SQL caches on different days in different systems before a decision is made. SQL traces produced with and without the new index in order (to measure the benefit) Make sure enough size is available. In case of doudt, post a ticket to basis to validate : give an estimate of the index size (number of records * index length) When creating the CI to move the index to pre-prod and prod, for large table, classify the CI as "risk : Major" and clearly document the potential sizing issue so the index is created in apropriate conditions (outage window ....) In the CI, request the implementer to check (on a significant period) the correct behavior of all indexes of the table (SQL cache) in order to find out if all accesses are still optimal. In case of issues, a SC ticket should be raised.