Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Views- performance slow?
Message
 
To
01/07/1998 03:00:24
Brian Lee
World Access Network, Inc.
Vancouver, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00113263
Message ID:
00114055
Views:
19
We have the same problem with Remote Views. You must resort to a combination of pass-thrus and local cursors. Pass-thrus are very fast. I have a table with 150,000 rows and the best optimzed way I can see is as follows:

OPEN DATABASE mydatabase
h=SQLConnect('datasource')
n=SQLExec(h,'select * from largetable where id=somefilter,'mylargecursor')
n=SQLExec(h,'select * from othertable where id=somefilter,'myothertablecursor')
* Do things to cursors now or use them like DBFS
SELECT * from mylargecursor a,myothertablecurosr b where a.id=b.id


Tip: See if creating the cursor on the same server as the SQL Database gives you a speed improvement. You can do that by setting the temp directory in the Table/Options menu.

Costas
Previous
Reply
Map
View

Click here to load this message in the networking platform