flyinghippo99
Registered User.
- Local time
- Today, 15:20
- Joined
- Feb 28, 2011
- Messages
- 53
Hi All,
So, I've built this fancy db app with nice frontend and it does a bunch of CRUD operations , etc. etc.
What I've noticed is that the db gets FAT and BLOATED very quickly. I tested it by viewing the data in various slices and the db grows by 2-3x in matter of minutes. If I continue doing the various view slices who knows how big it will get...
Now, to give some context, my view operations are bit complex/convoluted involving a bunch of union queries, intermediate tables creation(hundreds but they are slim one column wide) then combining it all together in a final view. Perhaps, this
is where the bloating is coming from(?).
I set the db app to compact the db after each exit of the program. It doesn't help. The bloating continues. So, I always keep an original non-bloated(or rather less
bloated) version which I copy over after my testing. Obviously, this is not a workable solution in the long-term since the user will start using it and it will really get bloated. This is even before splitting it FE/BE.
So, the question is this an intrinsic nature of Access? That Access naturally gets bloated over time with usage? Or is this a function of my complex queries/table creations/ADO/VBA/DAO stuff? Or some combination thereof? And most importantly, how to fix it?
Please advise.
Thanks!
flyinghippo99
So, I've built this fancy db app with nice frontend and it does a bunch of CRUD operations , etc. etc.
What I've noticed is that the db gets FAT and BLOATED very quickly. I tested it by viewing the data in various slices and the db grows by 2-3x in matter of minutes. If I continue doing the various view slices who knows how big it will get...
Now, to give some context, my view operations are bit complex/convoluted involving a bunch of union queries, intermediate tables creation(hundreds but they are slim one column wide) then combining it all together in a final view. Perhaps, this
is where the bloating is coming from(?).
I set the db app to compact the db after each exit of the program. It doesn't help. The bloating continues. So, I always keep an original non-bloated(or rather less
bloated) version which I copy over after my testing. Obviously, this is not a workable solution in the long-term since the user will start using it and it will really get bloated. This is even before splitting it FE/BE.
So, the question is this an intrinsic nature of Access? That Access naturally gets bloated over time with usage? Or is this a function of my complex queries/table creations/ADO/VBA/DAO stuff? Or some combination thereof? And most importantly, how to fix it?
Please advise.
Thanks!
flyinghippo99