Jim Dettman
jimdettman at earthlink.net
Wed Feb 18 08:06:53 CST 2004
Gregg, Couple of things: 1. Turn off opportunistic locking on the server (OPLOCKS). This is covered in the MSKB and is a registry change. Most likely, this is what your seeing. OPLOCKS allows client side caching of files. When a user grabs a file, their granted exclusive use of the file. This allows the client OS to cache the file on the client side. However when a second user comes along, the server goes back to the first client, tells it that it can no longer have exclusive access. It then waits for the client to flush it's cache and agree to multi-user access. Then the server allows user 2 to join. With Access, OPLOCKS is a waste because JET already does client side caching and handles that on it's own. 2. Make sure all the users have full create/delete privilege for the directory where the MDB resides - If not, the last user out cannot delete the .LDB file. This can cause delays when reopening the BE. 3. In your FE, hold a reference to the BE for the life of the app - This avoids repeated opening/closing of the BE by JET and thus avoids all the associated overhead. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Wednesday, February 18, 2004 8:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Stumped on A97 Speed Problem I have an A97 BE with multiple A97 FE on a Win 2K server. The Workstations are on 2K as well. When I open the first user's FE, it takes 5 seconds. When I open the second user's FE it takes 20 seconds. It doesn't matter which workstation is second... its always 20 seconds. The time difference seems to lie in a section of code on my main form that does 7 lookups and makes tabs and other controls visible or invisible depending on that user's parameters the employee table. I can optimize the code and reduce the time considerably but I am wondering why this is so... and what performance is it costing me in other areas of the program? Also, I have used the same technique at another customer that I have not tested as thoroughly but uses Citrix. Their database takes about 80 seconds to over the network but only 12 second on Citrix. Is there some file locking going on that shouldn't be? What's the deal? Gregg _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com