Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have cursors never be sent to disk?
Message
De
23/01/2014 14:04:46
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
22/01/2014 11:28:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01592171
Message ID:
01592346
Vues:
81
>>>Hi Craig and Martina,
>>>
>>>Just ran a test with and without RamDisk for tmpfiles and sortwork and was disappointed.
>>>
>>>I am trying to optimize ExcelListener where there is a ~20MB cursor on which I run many SELECTS. Guess I have defined enough indices so that Rushmore is able to do its job well.
>>
>>If you put the original file into the ramdisk it might perform faster. If you run a query that produces a cursor - usually with READWRITE, and store that in the RAM disk and subsequently requery the cursor, it will not perform well until you add indexes to the cursor. If you have a big enough ram disk to hold the file and it is indexed, you might see some improvement.
>
>Thanks Mike.
>
>Alex

Since this topic comes up as others add to it, I thought of something else. Produce your 20MB cursor on the local drive. Index it all you need. Query it. I really cannot say that using a RAM drive will beat a modern local drive by much, especially since you will lose real RAM to the RAM drive. VFP will use the RAM as needed. The local drive will definitely beat accessing the file across the LAN. You could also attempt to use VFP multi-threading to run your many SELECTS in parallel on the local machine too.

The other option is to put the 20MB file on SQL Server and have SQL Server provide results to the users. SQL will use multiple cores and all the RAM to evaluate queries. If you parameterize your queries, SQL will reuse query plans.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform