Solved! Go to Solution.
No, they're not the same. However, ArcSDE compression is only necessary if
versioned editing is taking place. How may versioned tables do you have?
How many rows in the A and D tables?
- V
Maybe a more fundamental understanding of what compressing the database does, when done in ArcCatalog, would help your situation. In your editing workflow you either use, or do not use, versioned editing. Here's a link to understanding versioning at 9.3.
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=understanding%20versioning
Assuming you now understand versioning, when you register a feature class as versioned, the adds and deletes tables are created in the database. Adds and deletes tables don't exist if your feature class is not registered as versioned. When edits are made using versioning, the deltas are stored in these adds and deletes tables. Further on in the versioned editing process you will reconcile and post. Reconciling and posting means ArcGIS is "comparing" the edits of the database being edited to its parent database to see if any conflicts exist. Once reconciled, the edits are "posted" (or, committed, in a sense, but not actually committed...read on) to the default database. ArcGIS clients will now see the changes. However, the deltas are still in the adds and deletes tables, but the ArcGIS clients are referencing those tables, so data changes are visualized.
If you are using a third-party software (i.e. AutoCAD) to consume your gis data, that software probably won't be referencing the adds and deletes tables and thus the data changes won't be reflected. That's one time that compressing the database comes in. Compressing the database does a number of things. The first of which is that it "trims" the lineage of changes in the data. It trims the state tree which, among other things, saves on space. Another thing that compressing does (albeit a full compress) is that it moves the deltas from the adds and deletes tables to the base tables of the database, ensuring that those third-party programs are seeing all of the data changes.
You can compress through ArcCatalog as little or as much as you want, and ArcGIS will do as good of a job as it can in compressing. A full compress will not occur until all versions are reconciled, posted, and deleted; and there are no database replicas referencing the adds and deletes tables. A full compress is achieved when the state_id of SDE.DEFAULT equals 0. A successful compress does not always equal a full compress. A successful compress just means that ArcGIS did as good a job as it could trimming the state tree, considering versions may still exist and replicas have not been synchronized. Read up on database replication here:
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Scenarios_using_distributed_data
As Vince stated, a full compress is not always necessary. To read up on compressing a database at version 9.3, read this:
http://webhelp.esri.com/ArcGISdesktop/9.3/index.cfm?TopicName=Compressing_an_ArcSDE_geodatabase_lice...
Hope this helps~
SELECT sysobjects.Name, sysindexes.Rows FROM sysobjects INNER JOIN sysindexes ON sysobjects.id = sysindexes.id WHERE type = 'U' AND sysindexes.IndId < 2 ORDER BY sysobjects.Name