Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow Access with multi users
Message
From
29/06/2012 08:37:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/06/2012 13:28:20
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01546902
Message ID:
01547209
Views:
93
>>Hi Gary,
>>
>>the oplocks comments are sound. As we found out when we deployed our app back in 2002.
>>
>>BUT -- when a file is over a certain size (seems like it was about 200MB), we found a slowness in opening that no amount of changing indexes, etc. fixed. And these openings were being done with NODATA. I looked at it with Filemon, advanced options, and what I saw was every record being scanned.
>
>I've found that using CREATE CURSOR is much faster than NODATA with complex SQL and even faster than asking a remote database for an empty structure.

Of course, as it doesn't visit the server at all.

Getting an empty cursor from another side accomplishes two things Create Cursor doesn't: gets you the latest structure, and checks that you can get it. Since this empty is usually retrieved early on, before the user did anything, it is the right time to do such a check. Having the user wait a bit is far better than hitting him with an error message when trying to save.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform