473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Multiple decompile/compact keeps reducing file size?

I have a db that has a couple of times closed Access completely when Saving
work.

So I usually compact and decompile and this seems to fix the problem. But
not his time. It has come back again.

But my query is this. How come I can keep reducing file size?

I decompiled, recompiled and compacted the db 3 times and each time the
file size reduced. First time from 13.5 MB to 7.5 MB. Second time down a few
Kb to just below 7.5 MB. Third time down another 2MB to 5.4 MB.

What!!!

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au
Dec 13 '06 #1
8 2154
On Wed, 13 Dec 2006 10:57:54 +1000, "Jeff"
<je************@asken.com.auwrote:

When you continued this process, did it eventually go negative?

-Tom.

>I have a db that has a couple of times closed Access completely when Saving
work.

So I usually compact and decompile and this seems to fix the problem. But
not his time. It has come back again.

But my query is this. How come I can keep reducing file size?

I decompiled, recompiled and compacted the db 3 times and each time the
file size reduced. First time from 13.5 MB to 7.5 MB. Second time down a few
Kb to just below 7.5 MB. Third time down another 2MB to 5.4 MB.

What!!!

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au
Dec 13 '06 #2
Hey that's a good idea. If I keep doing it will it increase the size of my
HD?

Jeff

"Tom van Stiphout" <no*************@cox.netwrote in message
news:5q********************************@4ax.com...
On Wed, 13 Dec 2006 10:57:54 +1000, "Jeff"
<je************@asken.com.auwrote:

When you continued this process, did it eventually go negative?

-Tom.

>>I have a db that has a couple of times closed Access completely when
Saving
work.

So I usually compact and decompile and this seems to fix the problem. But
not his time. It has come back again.

But my query is this. How come I can keep reducing file size?

I decompiled, recompiled and compacted the db 3 times and each time the
file size reduced. First time from 13.5 MB to 7.5 MB. Second time down a
few
Kb to just below 7.5 MB. Third time down another 2MB to 5.4 MB.

What!!!

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au

Dec 14 '06 #3
On Thu, 14 Dec 2006 08:12:49 +1000, "Jeff"
<je************@asken.com.auwrote:

The only thing that comes to mind is the double-compact that is
sometimes necessary with replicated databases. Are you sure your
database is not corrupt?

-Tom.

>Hey that's a good idea. If I keep doing it will it increase the size of my
HD?

Jeff

"Tom van Stiphout" <no*************@cox.netwrote in message
news:5q********************************@4ax.com.. .
>On Wed, 13 Dec 2006 10:57:54 +1000, "Jeff"
<je************@asken.com.auwrote:

When you continued this process, did it eventually go negative?

-Tom.

>>>I have a db that has a couple of times closed Access completely when
Saving
work.

So I usually compact and decompile and this seems to fix the problem. But
not his time. It has come back again.

But my query is this. How come I can keep reducing file size?

I decompiled, recompiled and compacted the db 3 times and each time the
file size reduced. First time from 13.5 MB to 7.5 MB. Second time down a
few
Kb to just below 7.5 MB. Third time down another 2MB to 5.4 MB.

What!!!

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au
Dec 14 '06 #4
No, I am not. But this is the only symptom if it is. And this is not a
replicated database.

Really, this is the only problem that I have with this database. I have had
it with others but decompiling and compacting a couple of times seems to fix
it.

It's a bit of a mystery. I suppose I wait to see if it occurs again.

Jeff

"Tom van Stiphout" <no*************@cox.netwrote in message
news:jd********************************@4ax.com...
On Thu, 14 Dec 2006 08:12:49 +1000, "Jeff"
<je************@asken.com.auwrote:

The only thing that comes to mind is the double-compact that is
sometimes necessary with replicated databases. Are you sure your
database is not corrupt?

-Tom.

>>Hey that's a good idea. If I keep doing it will it increase the size of my
HD?

Jeff

"Tom van Stiphout" <no*************@cox.netwrote in message
news:5q********************************@4ax.com. ..
>>On Wed, 13 Dec 2006 10:57:54 +1000, "Jeff"
<je************@asken.com.auwrote:

When you continued this process, did it eventually go negative?

-Tom.
I have a db that has a couple of times closed Access completely when
Saving
work.

So I usually compact and decompile and this seems to fix the problem.
But
not his time. It has come back again.

But my query is this. How come I can keep reducing file size?

I decompiled, recompiled and compacted the db 3 times and each time the
file size reduced. First time from 13.5 MB to 7.5 MB. Second time down a
few
Kb to just below 7.5 MB. Third time down another 2MB to 5.4 MB.

What!!!

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au


Dec 14 '06 #5
Well, eventually, the size reduction must stop.

Here is what is going on if you are wondering:

when you first de-compile, you should hold down the shift key. And, you
should EXIT the database right away.

You MUST MAKE SURE that no code runs!!!

After you exit, you re enter (without the de-compile). Also, as mentioned,
you MUST hold down the shift key if you have ANY code that runs (ignore that
shift key advice if no start up code exists).

Ok...no, do a compact and repair..(and again..MAKE SURE no start code runs).
At this point you file size will be as SMALL AS IT can get. Exit, and take a
look. You will have no junk (that decompile removed) and you will have NO
object code. You will be amazed..and the mdb file will be as SMALL as it
will ever get.

In you case, when you do a de-compile, all of the code junk is still there.
You compact..and it gets all cleaned out...a huge drop in size..however, if
you have any start-up code that runs...it gets compiled..and when you
compact/repair.....you STILL HAVE some reduction in size available due to
SOME code being compiled. So, doing a compact and repair , and then again a
decompile removes this compile code (but, clearly not as much junk is left
over as compared to the first de-compile).

So, try the above sequence and always exit the database right after you
de-compile..

post back here for the people as to how the above went....

So, critical here...is exit right after a de-compile..and then re-enter.
And, in ALL CASES DO NOT let any code run...so, that might mean in all of
the above cases you MUST use the shift key....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Dec 15 '06 #6
Thanks, Albert, today I have learned something.

David F. Cox

"Albert D. Kallal" <Pl*******************@msn.comwrote in message
news:GYlgh.477143$1T2.412631@pd7urf2no...
Well, eventually, the size reduction must stop.

Here is what is going on if you are wondering:

when you first de-compile, you should hold down the shift key. And, you
should EXIT the database right away.

You MUST MAKE SURE that no code runs!!!

After you exit, you re enter (without the de-compile). Also, as mentioned,
you MUST hold down the shift key if you have ANY code that runs (ignore
that shift key advice if no start up code exists).

Ok...no, do a compact and repair..(and again..MAKE SURE no start code
runs). At this point you file size will be as SMALL AS IT can get. Exit,
and take a look. You will have no junk (that decompile removed) and you
will have NO object code. You will be amazed..and the mdb file will be as
SMALL as it will ever get.

In you case, when you do a de-compile, all of the code junk is still
there. You compact..and it gets all cleaned out...a huge drop in
size..however, if you have any start-up code that runs...it gets
compiled..and when you compact/repair.....you STILL HAVE some reduction in
size available due to SOME code being compiled. So, doing a compact and
repair , and then again a decompile removes this compile code (but,
clearly not as much junk is left over as compared to the first
de-compile).

So, try the above sequence and always exit the database right after you
de-compile..

post back here for the people as to how the above went....

So, critical here...is exit right after a de-compile..and then re-enter.
And, in ALL CASES DO NOT let any code run...so, that might mean in all of
the above cases you MUST use the shift key....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com


Dec 15 '06 #7

Albert D. Kallal wrote:
So, critical here...is exit right after a de-compile..and then re-enter.
And, in ALL CASES DO NOT let any code run...so, that might mean in all of
the above cases you MUST use the shift key....
This is quite interesting. I took this a step further since I do not
like to leave my code in a decompiled state. I made two copies of an
..adp file as follows:

adp1 started out at 20,955,648 bytes.

With copy 1:
decompile + shift
compile
compact/repair
exit
resulted in a 14,409,216 byte compiled file.

With copy 2:
decompile + shift
exit
start + shift
compact/repair + shift
exit
resulted in a 10,332,672 byte decompiled file (much smaller, but
decompiled)

opened copy 2 again + shift
compile
compact/repair + shift
exit
resulted in a 14,439,936 byte compiled file.

Interestingly, it appears that decompiling, exiting, restarting, and
compiling results in a larger compiled file than simply decompiling and
compiling even though no code was run in any case. Also it appears
that exiting and restarting actually hinders the process of creating
the smallest compiled file but helps the process of creating the
smallest de-compiled file. Interesting.

Bruce

Dec 15 '06 #8
After reading my post I realized that I didn't mention the actions in the
right sequence. I always decompile first, then compact, then reopen and
compile the database. At no time do I allow any startup code to run. But I
still got these strange results.

So I investigated further and with another database follow the some process.
File sizes over 2 iterations went down from about 11MB to 7,488K after the
final compile.

Interestingly, at this point I noticed that if I then decompiled it went
back up to 7,556, then after a compact down to 3,784 and then after the
final compile back up to 7,492.

I did the sequence again and I was back to 7,488.

I did it again and I was back to 7,492, and each time after that it seems to
remain at 7,492.

Mmmm?

Jeff

"Albert D. Kallal" <Pl*******************@msn.comwrote in message
news:GYlgh.477143$1T2.412631@pd7urf2no...
Well, eventually, the size reduction must stop.

Here is what is going on if you are wondering:

when you first de-compile, you should hold down the shift key. And, you
should EXIT the database right away.

You MUST MAKE SURE that no code runs!!!

After you exit, you re enter (without the de-compile). Also, as mentioned,
you MUST hold down the shift key if you have ANY code that runs (ignore
that shift key advice if no start up code exists).

Ok...no, do a compact and repair..(and again..MAKE SURE no start code
runs). At this point you file size will be as SMALL AS IT can get. Exit,
and take a look. You will have no junk (that decompile removed) and you
will have NO object code. You will be amazed..and the mdb file will be as
SMALL as it will ever get.

In you case, when you do a de-compile, all of the code junk is still
there. You compact..and it gets all cleaned out...a huge drop in
size..however, if you have any start-up code that runs...it gets
compiled..and when you compact/repair.....you STILL HAVE some reduction in
size available due to SOME code being compiled. So, doing a compact and
repair , and then again a decompile removes this compile code (but,
clearly not as much junk is left over as compared to the first
de-compile).

So, try the above sequence and always exit the database right after you
de-compile..

post back here for the people as to how the above went....

So, critical here...is exit right after a de-compile..and then re-enter.
And, in ALL CASES DO NOT let any code run...so, that might mean in all of
the above cases you MUST use the shift key....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com

Dec 16 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: deko | last post by:
After doing a lot of vba work, I've noticed the size of my mdb has grown, even though no data or objects have been added. I've read that the following procedure will remedy this and improve...
1
by: JD | last post by:
Hi Access 10 running under XP Pro I have an app that grows every time I decompile it. I've tried importing all the objects into a new .mdb and then immediately compacting. This does return...
30
by: DFS | last post by:
I hadn't ever used it until a couple months ago, but it seems to be a handy little switch. On some .mdbs it doesn't change the size, or actually increases it a little. But on others it cut the...
6
by: owengoodhew | last post by:
Hi, I am responsible for maintaining an MS Access 97 Database that reliably becomes corrupt following a compact......... About the Database: The database is made up of three linked databases,...
17
by: rdemyan via AccessMonster.com | last post by:
I have a launcher program that creates the shortcut to open my application using the Shell command. On the form I have a decompile checkbox that I can conveniently use to decompile my program. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.