Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
X# vs VFP
Message
From
18/10/2019 22:45:37
Walter Meester
HoogkarspelNetherlands
 
 
To
18/10/2019 12:21:57
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Miscellaneous
Thread ID:
01671547
Message ID:
01671557
Views:
151
Likes (1)
>One of the major differences between .Net and VFP is that even when working against SQL Server the "cursor" in VFP is held in a temporary dbf (which for large datasets we actually point toward an imdisk ramdisk: nothing is faster than memory). In .Net, a recordset is help in memory. That's fine for small datasets, but datasets for reporting (munged from what's available on the backend server) can be quite large. It will be interested to see speed differences between the two approaches.
>
>Hank

That is not entirely correct. VFP might span SQL resultsets to disk, but as long as you don't force them to be written to disk (SYS(1104)) or create an index on it, most will entirely reside in memory. Only longer tables will be written to disk.

You can actually check whether they are written by disk by using
lOnDisk = FILE(DBF("MyCursor"))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform