Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update
Message
From
11/02/2003 04:34:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Update
Miscellaneous
Thread ID:
00751813
Message ID:
00751813
Views:
64
Hi all,

I have the following problem with a SQL update:

I populate a temp table and put it threw a SCAN to update my relevant table,it is very slow and would love to speed it up.Is there any way with the current indexes to do so?The speed is about one record every 1 second.


SELECT * FROM prodarea;
INTO CURSOR tmpLoad;
ORDER BY 1,2;
NOCONSOLE
INDEX ON PROD + area TAG PROD

cCounter = 0

SCAN

cCounter = cCounter + 1

UPDATE xxx;
SET po_area = tmpLoad.area;
WHERE po_code = tmpLoad.PROD AND;
po_docode = "x"




WAIT WINDOW "Files Updated: " + STR(cCounter) NOWAIT

ENDSCAN
Next
Reply
Map
View

Click here to load this message in the networking platform