If you have a polyline or polygon hosted feature service in ArcGIS Online, there is an option under the Settings tab to Optimize Layer Drawing, which "increases the drawing speed of line and polygon layers with detailed geometry (e.g., many vertices) but also uses additional storage space to do so."
Does anyone know if there is a Python API way to run this process on feature services? It would be a very beneficial thing to do via scripting.
When I have Optimize Layer Drawing active I cannot use featureLayer.layers.edit_features().
Having a way to programmatically disable the optimization temporarily, to perform the edit_features, would be appreciated.