ModernGIS

Search Cursor in Python

Discussion created by ModernGIS on Sep 25, 2013
Latest reply on Sep 25, 2013 by ModernGIS
I have a Python script that starts with a Search Cursor that goes through a File Geodatabase and looks for a unique number and produces a graph and prints it out to a .PDF. The Script works out just fine. BUT - each time I run it - it seems to take longer and longer. The first few times - it produces about 4 .PDFs each minute. Now - when I run it - it goes slower and slower - about 1 .PDF every 2 minutes.

Does the Search Cursor produce "Temp" files somewhere that needs to be cleared out? How can I speed this up?

Outcomes