I'm having a memory leak issue. Upon investigating this more, it seems the file based geodatabase I write to in a loop, is growing very large, and as it grows, it significantly degrades the performance of the scripts I am running.
Any ideas how to optimize the configuration of the fgdb? Or how to speed it all up? I am not writing 'in_memory', I am using aggregatePoints to create a temp featureclass (which I delete), and I buffer this FC, which I keep.
However, it seems to get slower, and slower, and slower...
def createGeom1(geom, scratchDB): filetime = (str(time.time())).split(".") outfile = "fc" + filetime + filetime outpath = scratchDB + "tmp1.gdb/Polygon/" outFeatureAggClass = outpath+outfile + "_Agg" arcpy.AggregatePoints_cartography(geom, outFeatureAggClass, "124000 meters")
geom is a collection of Points, scratch the scratch area (local gdb I am using).
Just looping through a list of files, I call a procedure that creates alist of geoms (and doesn't degrade) and then call this. Doing this, will see this function, createGeom, degrade significantly, and the previous one, not a bit.