Hi Jamal,
This is a typical editing question in a versioned ArcSDE (without using move edits to base option) environment. The situation you have seen is as expected. When you have reconciled and posted edits to the default version, the changes will show up in ArcGIS Desktop but not in your SQL Server business table side. Only when you have run a FULL compress for the ArcSDE geodatabase, then you will see the changes from the SQL Server business table as well.
Here is a simple example explaining the versioning editing workflow.
1. You register a feature class as versioned, then that will create 2 new tables in database side, like A100 table and D100 table, the number 100 is the registration ID for that feature class, so A100 stands for Add table and D100 stands for Delete table.
2. When you edit the feature class in Default version from ArcMap, like Creating a new feature, then the feature will be added to the A100 table, but not to the business table.
3. So basically when you see edits from ArcMap for the Default version, you will see changes like following:
features from business table + (plus) features in A table reflect to the Default version - (minus) features in D table reflect to the Default version
4. But when you see records from database side directly, you will only see features from the business (base) table.
Please refer to the following web help document regarding how to achieve a FULL compress for your ArcSDE geodatabase.
http://resources.arcgis.com/en/help/main/10.1/index.html#/The_geodatabase_compress_operation/003n000...
Thanks,
Ben L.
Hi Jamal,
This is a typical editing question in a versioned ArcSDE (without using move edits to base option) environment. The situation you have seen is as expected. When you have reconciled and posted edits to the default version, the changes will show up in ArcGIS Desktop but not in your SQL Server business table side. Only when you have run a FULL compress for the ArcSDE geodatabase, then you will see the changes from the SQL Server business table as well.
Here is a simple example explaining the versioning editing workflow.
1. You register a feature class as versioned, then that will create 2 new tables in database side, like A100 table and D100 table, the number 100 is the registration ID for that feature class, so A100 stands for Add table and D100 stands for Delete table.
2. When you edit the feature class in Default version from ArcMap, like Creating a new feature, then the feature will be added to the A100 table, but not to the business table.
3. So basically when you see edits from ArcMap for the Default version, you will see changes like following:
features from business table + (plus) features in A table reflect to the Default version - (minus) features in D table reflect to the Default version
4. But when you see records from database side directly, you will only see features from the business (base) table.
Please refer to the following web help document regarding how to achieve a FULL compress for your ArcSDE geodatabase.
http://resources.arcgis.com/en/help/main/10.1/index.html#/The_geodatabase_compress_operation/003n000...
Thanks,
Ben L.
Hi Jamal,
First of all, analyse datasets and rebuild indexes will not contribute to the compress process, those however, will improve your overall database performance.
Secondly, only a FULL compress will push all the edits to the business (base) tables. In your Python script, the compress will only be treated as a partial compress, but not a full compress.
From the web help link I provided early, here is the detail information regarding FULL compress.
"Fully compressing a geodatabase
In a fully compressed geodatabase, there are no rows in the delta tables and the state tree is trimmed back to zero. Performance improvement is greatest if the geodatabase is fully compressed. To achieve this, do the following:
�?�Reconcile and post all outstanding changes in child versions to the DEFAULT version. As the geodatabase administrator, you can see in what order versions should be reconciled by default by opening the Reconcile Order subtab of the Versions tab on the Geodatabase Administration dialog box. See Version properties for information on the Reconcile Order subtab.
�?�Delete the versions themselves after you have reconciled and posted edits.
�?�Make sure no user is connected.
�?�Perform the compression operation."
You then can recreate the user versions after the full compress.
Thanks,
Ben L.
But what are the pros and cons for versioned feature classes with and without “move edits to base” option?
Is it accurate to say:
Is it accurate to say: