Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making database readonly
Message
From
29/04/2002 11:51:47
 
 
To
26/04/2002 14:20:15
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00649739
Message ID:
00650441
Views:
25
Hi Walter.

>After I marked the database readonly the same view was loaded in 0.20 seconds. It makes sense that it should be faster since the database can be cached in the workstation, though I was stunned in the performance difference.

I bet it isn't caching (or at least not entirely), but rather locking. As Cindy mentioned, VFP locks the view records in the DBC every time you open the view; in a read-only DBC, I'm guessing it doesn't bother doing that since the view definition can't change.

>My question is, has someone found problems or bugs when using readonly databases ?

Assuming you're not using offline view (which would need a writable DBC), the only thing I can think of that could possibly be an issue is transactions. I haven't tested this, so it might not be an issue at all, but I think the DBC is used to temporarily store information while a transaction is in progress. It might be that the information is actually stored in an in-memory cache of the DBC rather than the physical file on disk, so, as I said, this may not be an issue at all.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform