AnsweredAssumed Answered

Fastest way to get number of rows in a da.SearchCursor

Question asked by johnmdye on Oct 23, 2014
Latest reply on Oct 23, 2014 by johnmdye

Anyone know of a quick way to count the number of records returned by a da.SearchCursor with a where_clause applied?


with arcpy.da.SearchCursor(MyLayer, "SHAPE@", SuperDuperAwesomeQuery) as rows:
    # how do I figured out how many records are in rows without iterating through rows???