Query in SearchCursor or Select by attribute?

389
2
03-20-2012 09:59 AM
zhengniu1
New Contributor
My question is: which one is faster, using Query in SearchCursor or SelectlaybyAttribute to retrieve desired values from table in file geodatabase?
Tags (2)
0 Kudos
2 Replies
MathewCoyle
Frequent Contributor
If you are reading values, the search cursor with a where clause is faster. It also depends on what you are extracting and the size of your dataset, the gains may be minimal.
0 Kudos
zhengniu1
New Contributor
I have a script to run distance-based point clustering. it takes almost 4 mins to finish only 600 pts. do you mind to have a look? help me to facilitate the process?
0 Kudos