mehrshadx

ModelBuilder vs. python script performance

Discussion created by mehrshadx on Feb 4, 2014
Latest reply on Feb 5, 2014 by Dan_Patterson
Hi,

I am trying to run an arcpy script on JoinField to join a feature class and a standalone table. The model runs the process rather quickly, but the script takes a long time to complete! Is there a way to have the script run at least as fast as the ModelBuilder?

here is the script:

import arcpy
>>> from arcpy import env
>>> env.workspace    = 'C:\\WorkSpace\\sahie\\sahie.gdb'
>>> cnty06           = 'C:\\WorkSpace\\sahie\\sahie.gdb\\cnty06'
>>> co06             = 'C:\\WorkSpace\\sahie\\sahie.gdb\\co06'
>>>
>>> arcpy.JoinField_management(cnty06,"GEO_ID",co06,"stcou","")

Outcomes