Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Good to hear that selection set performance is improved in arcpy in 10.1. One possible explanation as to why the linked script runs much faster than opening a SearchCursor is that the default option ("OID") looks at the fidset of the layer -- this is probably where the performance improvement is achieved, assuming that is the option you are using. Commented Nov 10, 2011 at 1:35
  • @blah238 You are right that OID & fidset are the key to the solution because from Bruce Harold's Python script he says as a comment "Build a list of key field values. In the default case of using the OID field, just grab the FIDSet." Until your comment I'd not twigged to that - thanks! Commented Nov 10, 2011 at 22:53