HOW TO
Objects that are registered as versioned have supporting Adds and Deletes tables to maintain inserted, updated, and deleted records. The Adds and Deletes tables are highly active, meaning they experience constant change and ESRI has determined, for performance reasons, the following changes should be made to the Adds table indexes:
Note:
Perform this procedure on all versioned objects in the geodatabase.
Code:
SELECT index_name, index_owner, table_name, column_name, column_position
FROM dba_ind_columns
WHERE index_owner = '<owner>'
AND index_name like 'A%'
AND column_name <> 'SHAPE'
ORDER BY 1, 5;
Code:
SELECT index_name, table_name, column_name, column_position
FROM user_ind_columns
WHERE index_name like 'A%'
AND column_name <> 'SHAPE'
ORDER BY 1,4;
Code:
ALTER TABLE a<#> DROP CONSTRAINT a<#>_pk;
DROP INDEX a<#>_rowid_ix1;
Code:
ALTER TABLE a<#>
ADD CONSTRAINT a<#>_pk PRIMARY KEY (objectid, sde_state_id);
Note:
The sde_row_id may not necessarily be named ObjectID, in some cases it is named oid or even a user defined name. Ensure the correct column is used as the sde_row_id attribute. One can verify the correct column with the following SQL:
Code:
SELECT rowid_column FROM sde.table_registry WHERE owner = USER and table_name = 'table_wanted';
Code:
CREATE INDEX a<#>_state_ix1 ON a<#> (sde_state_id);
Article ID: 000009073
Get help from ArcGIS experts
Download the Esri Support App