Hello there,
I'm running a Access Database used for tracking a lot of information within a reasonably small company. Just recently (after making updates which included changes to some forms and tables, as well as adding 2 new forms) I noticed that one of the queries was slowing down, proportional to the amount of bloat. After a quick compact and repair, the bloat disappears and the query runs almost instantly. Then throughout the day as the bloat grows, the query takes longer and longer to load.
Some numbers just for reference. Approximately 60 people using regularly, 1.22 GB after compact and repair (query in question takes 1-2 seconds to load), 1.31 GB after 24 hours (query takes 2-3 minutes to load). The query is fairly long (inner joining 5 tables, some with 700,000+ records), but it needs to be as all the information is relevant to the form. Query load time increases to 2 minutes 4-5 hours after Compact and Repair.
Oddly enough we're only seeing this slow down on one form. Nowhere else throughout the database. When I move the Access file off the server to my local machine, the load time is basically instant. As you could probably assume, the database is not split and is kept on the server, but splitting and keeping the FE on the users' local machines is an option we're looking into.
The database is also not compiled, as there are a lot of methods in the VBA code for objects that have since been removed (I inherited the database from someone else). Access will not allow compiling when there are references to object that don't exist. Could this be the cause?
Is there some way I could find out exactly where the bloat is coming from? There are a lot of users using it simultaneously and doing very different tasks, so it's hard to isolate the problem.
Another thought I had was to put proper error checking in every method (some places it resumes, while others it actually displays the error and then resumes) to see if some errors are popping up in other modules.
While we did have bloat prior to the recent changes, we have never had the slow down occur so quickly. Prior to the recent changes, a compact and repair was required ever 3 or 4 days, where now we need to do it twice a day.