Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is my 20Mb Access Database now > 1.2Gb ?!?

Status
Not open for further replies.

lauerj

Technical User
May 15, 2003
14
US
I created 2 queries and was messing around with the formatting of a few forms in my application and next thing I know it starts acting REALLY slow. When I finally closed the application, i noticed the database that was ~20Mb large when I started is now over 1.2Gb large - what could have happened????
 
Are you storing pictures? Have you tried compacting and repairng the database? Just a couple of thoughts...

If at first you don't succeed, call in an airstrike. - Murphy's Laws of Combat Operations
 
Alright I am dumb. Why does this happen though? any tips for keeping my application as light-weight as possible?
 
Hmmm... Does it show the balloned size after you close it every time or just this once? I would think that if you are editing a massive amount of data then some size increase is to be expected (but as far as 1.2 gigs!??). Check your fields and make sure that you are not saving extrenious data (IE - spaces if you don't need them...), or if you are saving pictures try alternatives to saving them in the db. Good luck

If at first you don't succeed, call in an airstrike. - Murphy's Laws of Combat Operations
 
It's not immediately balooning in size but I have noticed a significant performance decrease. It literally takes 60 seconds to save every time I make a design change to an embedded form. I'm on a pretty good laptop computer, any ideas?
 
It seems to me that repairing and compacting your database is the most obvious solution (see Access help future on how to do this). If this does not help, I am not sure...
 
A rise from +/- 20 meg to 1.2 gigs ( a 50-fold increase) indicates a serious problem somewhere.

There are basically two things which cause an otherwise fairly static database to grow in size:

1) Lots of table deletes and erases (and by lots, I mean entire tables being deleted and then reloaded with data) Deleted records are not physically erased until a compact is done.

2) Corruption. (after all, it IS Microsoft Windows...

Try creating a new database and importing your other dbs' objects into it, and working with the new guy for a while.

Storing embedded images also tends to bloat the db, but you didn't say whether you do that or not.


jim


Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
Your probably still developing the DB, right ? When you're constantly adding and deleting objects (or making desing changes) to your DB, Access deletes the object but still allocates room for it.

When your done with that particular version of your DB, compact and repair and distribute it to your users. It shouldn't grow after that (with the exception of adding and deleting from tables)




 
Hi again,

I found this link:


It has quite a few tips for getting Access apps to run faster, thought it might help you out...

Good luck

If at first you don't succeed, call in an airstrike. - Murphy's Laws of Combat Operations
 
I narrowed the problem down. All that have to do is switch between the Design View and Form View and it grows in size each time (usually 2-3Mb) each time I switch from one to the other. What is going on?
 
What is your form load doing? You stated that switching between design and form view causes your db to grow. Sounds like data is getting replicated someplace, esp. when the form is loaded.

Is your db full of duolicates? Full of blank records? As mentioned elsewhere, run dbrepair. Also, IF your db is full of empty records, run a delete query that deletes those empty records, then do the compact/repair.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top