Hello,
The TLDR is, we have a distributed collaboration that makes copies from out EGDB to our AGO and we're having issues with the database not fully compressing after doing bulk edits.
Environment:
The problem:
We're testing out sharing data through the Distributed Collaboration to our ArcGIS Online and we've been running this for a week or two now. And I'm noticing that after we do a bulk reload of the feature classes we use for the distributed collaboration, then run a reconcile and compress script, the SDE_States aren't zero stating, and now we have 6 states and 3 of them were somehow produced (based on the time stamp) after we ran reconcile and compress. The SDE_versions table, I noticed, also has a growing list of Sync_Send and Sync_Receive, which share the same state_id as the states that aren't zeroing.
A few things I've tried but with no success.
I'm not a DBA by any stretch of the imagination, just knowledgeable enough to poke and prod and ask questions. So I'm not sure what to do at this point. We'd like to move this into production, but I'm hesitant to move forward if this is going to be an issue.
Thank you!
Hey, I was wondering if you ever heard anything back on this?
Unfortunately, not, I put in a ticket with ESRI Tech support, but all they were able to do was walk me through the process to manually remove the replicas (in SQL Server Manager) so we could perform a full compression.
It seems like things that are supposed to happen, to clean up orphan versions and whatnot, aren't happening with normal routine maintenance. I came across some ESRI documentation (for ArcMap) regarding reconciling and posting for sync enabled data, which I believe Distributed collaboration data would be, Automate reconcile and post operations for sync-enabled data—ArcMap | Documentation, there was a blog too I found but I can't find it.
We haven't looked further into this, for the time being we're going to stick with python scripts to overwrite our hosted feature layers in AGO.
Here are some of the follow up questions I asked, if it would help you.