Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BIG BUG: first use noupdate put all next use to read-onl
Message
From
13/01/2004 21:49:50
Walter Meester
HoogkarspelNetherlands
 
 
To
13/01/2004 11:27:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00865913
Message ID:
00866578
Views:
44
Hi Dragan,


>And just to pacify the worm which was biting me about this - I've tried to see whether there's one FCB (file control block - remember CP/M? - or whatever is the construct where the file handle is) per session per table, or just per table. IOW, the situation that Fabio started this thread with: if the first opening of the table is read-only, all subsequent uses of that table will also be read-only until all aliases of that table are closed.
>
>This holds only within the same datasession. If all your forms have private datasessions, it makes sense to open any lookups read-only, or tables to just report from. The lookups would be read-write in the forms where they are edited.
>
>Now imagine a scenario where 50 workstations have the customer table open - the network has to check for record locking for all of them, even though only one is doing any updates to this table. But if 49 are using the customer table readonly, the network knows the locking may come from one workstation only, ergo its overhead is reduced drastically, at least as far as record locking goes.

It does not quite work this way. the locks are administered on the server, not on the clients, so it is no big big deal no matter how many clients have opnened the table.

The server normally uses a opportunitic locking scheme to enable write caching data on the client if the client is the only client that openened the table. Also, it enables read chaching as long as no other client writes to the table.

Walter

>So your intuition may have some realistic foundation, if I'm right.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform