Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

ModelBuilder vs. python script performance

$
0
0
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","")

Viewing all articles
Browse latest Browse all 2485

Trending Articles