In a python/arcpy script I have to do a compress database and a regenerate index. I don't have to do a reconcilied version.
But previously I have to validate if users have reconcilied the data in the default version of the enterprise database.
Is there any way to do this with ArcPy?. Maybe doing a query to the sde.version table or other table. But I do not how.