Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Views- performance slow?
Message
 
À
01/07/1998 03:00:24
Brian Lee
World Access Network, Inc.
Vancouver, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00113263
Message ID:
00114055
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform