Previous in Forum: Parallel Port Interfacing in Visual Basic   Next in Forum: CAD Drawings
Close
Close
Close
27 comments
Rate Comments: Nested
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17

Why Would a File Grow?

02/05/2010 7:59 AM

Hi All,

I'm running an excel spreadsheet as an operator log book. The file is set up as shared, used by 4 different users on three different shifts. I set it up to save the work every 5 min. and not store any history.

The operators are adding about 1K of data per shift total (by my calculations). But the file is going from 4.03M to 12.6M in less than a shift. At the end of the day, I open up my back up file and the working file, (my back up file is the 4M file) and I input all the data from the previous day, (no big change in the file size) and then I overwrite the working file, which brings it back to the 4.02M size.

Yesterday I watched the file size all day, the guys were opening and closing the file as normal and the size was steady. At about 1pm I had to go to the floor and do some firefighting... business as usual, but when I got back to my desk, the file was again back up to 12.6M and looks like it stayed that way through the night.

Why would the file size triple with such little data entry?

Better question, how do I keep it from tripling? The smaller the file size the better it runs on the floor.

Laby

__________________
Be careful of what you wish for .....
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#1

Re: Why would a file grow?

02/05/2010 8:24 AM

Instead of having to bump up the complete file every time new data is added the excel grabs a whole block with lots of empty space to work with. Some of the space is released again on backup.

With more than one person working it is also better to have separate storage areas for each operator. That is to prevent complicated partial record locking.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#2
In reply to #1

Re: Why would a file grow?

02/05/2010 8:55 AM

The reason for the spreadsheet is to track some tooling we use, the tooling is used on many different machines and therefor I need to be able to track the tooling from machine to machine.

I know I can track from tab to tab, but can I track for workbook to workbook? Will that still work when one of the workbooks are closed?

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Hobbies - DIY Welding - Don't Know What Made The Old Title Attractive... Popular Science - Weaponology - New Member United States - US - Statue of Liberty - 60 Year Member

Join Date: Apr 2009
Location: Yellowstone Valley, in Big Sky Country
Posts: 7425
Good Answers: 295
#3
In reply to #2

Re: Why would a file grow?

02/05/2010 2:01 PM

"I know I can track from tab to tab, but can I track for workbook to workbook? Will that still work when one of the workbooks are closed?"

Sure. The data will not be updated until the target workbook is opened, but the data will be refreshed (after a prompt) whenever it is opened.

__________________
Semper Ubi Sub Ubi
Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#5
In reply to #3

Re: Why would a file grow?

02/05/2010 2:15 PM

So the data is not real time, and I couldn't trust that the other workbook was open or not.

So, if I'm looking to see how many parts were added to cutter, and the cutter was used in two different workbooks, then I'd need both books open at the same time to know for sure how many parts that cutter ran ???

I'm going to test this..

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Hobbies - DIY Welding - Don't Know What Made The Old Title Attractive... Popular Science - Weaponology - New Member United States - US - Statue of Liberty - 60 Year Member

Join Date: Apr 2009
Location: Yellowstone Valley, in Big Sky Country
Posts: 7425
Good Answers: 295
#7
In reply to #5

Re: Why would a file grow?

02/05/2010 2:32 PM

"So the data is not real time, and I couldn't trust that the other workbook was open or not."

Correct, the data you see in Workbook A, Sheet 1 (target), even though linked to Workbook B, Sheet 1, Cell XX, is only real time for the second following a tap of the 'Refresh Data' icon at your workstation. This technique is sort of difficult with several data entry people; before closing a file, the last thing to be done is REFRESH DATA. Failure to do this housekeeping chore can result in the linked books and sheets not being updated.

The more I think about it, it would be difficult to trust your displayed data. Ya just never know, even with consciencious operators, sometimes things happen.

__________________
Semper Ubi Sub Ubi
Register to Reply
Active Contributor

Join Date: May 2008
Location: Mumbai
Posts: 11
Good Answers: 1
#4

Re: Why would a file grow?

02/05/2010 2:13 PM

You might have enabled the track changes option in your file!!

__________________
Nikunj Jain
Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#6
In reply to #4

Re: Why would a file grow?

02/05/2010 2:16 PM

Turned that option off a few days ago, the problem persists...

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#8

Re: Why would a file grow?

02/05/2010 2:57 PM

Out of curiousity, what happens if you saveas a new file name or saveas the same file name and overwrite it.

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#9
In reply to #8

Re: Why would a file grow?

02/05/2010 3:03 PM

I tried that. Funny thing, you see if I take the large file, it stays large, no matter what I do with it..

So, here's what I've been doing. I go to the floor and find the 'not responding' files, mostly 2 of them, then I rename them something, and save them.

then I close them, return to my desk and pour myself a cup of joe. Then I open all the renamed files along with my 'back up'. Then I put all the data from the floor into my 'back up'. then I go into the network and delete all the 'big' files. Poof gone.

Then I rename my 'back up' and load it to the network, so it works again on the floor.

If I could only keep the file size the same as my back up, it would be fine... but it triples in only a few hours.... why???

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#18
In reply to #9

Re: Why would a file grow?

02/08/2010 9:56 AM

perhaps a custom vb app? let me know.

Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#19
In reply to #18

Re: Why would a file grow?

02/08/2010 10:02 AM

as the cause? or as a fix?

Strange thing happened last weekend... the file did NOT grow. It was used as normal as we are a 24/7 operation and when I came in this morning, the file grew about 3K, as I would expect. Last week it grew by 7M in a few hours... what gives??

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#22
In reply to #19

Re: Why would a file grow?

02/08/2010 10:30 AM

that is strange...

and yes, I was proposing to write an app for you, matching your current interface and structure, or improving on them, and eliminate the saving issues altogether. but if not, no problemo. if you do go with the access database, you don't have to save. its automatic. I'm no access expert though.

If your sheet is largely just data, then try saving as 'csv' (comma delimited format) and then close and open, start a brand new sheet, and import the csv file.. save, and check the size.

chris

Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#24
In reply to #22

Re: Why would a file grow?

02/08/2010 10:58 AM

Thanks, I'll give that a try.

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#10

Re: Why Would a File Grow?

02/05/2010 11:35 PM

This is just a guess, but I know other software vendors like Solidworks do it. They save the 'autosave' data inside the same file... so try turning off your autosave, or make it a larger number of minutes. It is default to like 10 minutes, and so if you walk away from the machine with the file open for 31 minutes it could autosave 3 times. let me know.

Chris

Register to Reply
3
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#11

Re: Why Would a File Grow?

02/05/2010 11:40 PM

One possibility as to why the file grows, and I am not sure this applies to spreadsheets. But, when you edit an existing Word document, the original is not really changed, but the changes are saved as sort of addenda to the main document. So word processor files tend to grow without bounds, loading slower and slower, until the whole thing is so confused it can't figure out what is going on. By using "SaveAs" instead of "Save", all of the edited bits are incorporated into the main body, and the file magically gets a whole lot smaller. This may be what is happening to your file. If you are changing data, rather than adding data, you may be saving the old stuff that you think you are overwriting...

Register to Reply Good Answer (Score 3)
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#12
In reply to #11

Re: Why Would a File Grow?

02/05/2010 11:46 PM

I agree... we are on the same track. Save as blows away the autosave info.

Chris

Register to Reply
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#14
In reply to #11

Re: Why Would a File Grow?

02/06/2010 9:08 AM

well put.

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#15
In reply to #11

Re: Why Would a File Grow?

02/08/2010 7:49 AM

Sorry, your GA's were premature... I found the exact opposite to be the truth, when I had the option turned off, save only when saved, option was on, the file grew to the largest I've ever seen it, (over 32Mb) within 3 hours.

When I took the autosave from every 10 min, to every 5 min. it now takes 8 to 12 hours to grow from 7Mb to 12mb, but then I shrink it back.

It looks like the more I save it, the smaller the file remains. It's as if there is less to remember from the last save...

Any other ideas?

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Engineering Fields - Aerospace Engineering - Member United States - Member - Army Vet in the aviation industry

Join Date: Mar 2008
Location: Bridgewater, Va.
Posts: 2175
Good Answers: 119
#16
In reply to #11

Re: Why Would a File Grow?

02/08/2010 9:31 AM

GA from me. This file growth stuff for Excel and Word is old stuff. Best solution for a highly active application like this tool tracking is to take it to an Access database. There's a bit more leeway for management and Access tables are basically Excel workbooks anyway.

Hooker

Register to Reply Score 1 for Good Answer
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#17
In reply to #16

Re: Why Would a File Grow?

02/08/2010 9:53 AM

That has been suggested, and I'm looking at it. Big BUT is that I want one operator to see what the last operator put in, but setting it up like data entry will not work for me. I'm not trying to fill in tables. I'm trying to get information from one operator to another and from machine to machine..

So it needs to have the spreadsheet 'look and feel'..

Thanks for the suggestion, I'll let you know how it goes.

__________________
Be careful of what you wish for .....
Register to Reply
Guru
Engineering Fields - Aerospace Engineering - Member United States - Member - Army Vet in the aviation industry

Join Date: Mar 2008
Location: Bridgewater, Va.
Posts: 2175
Good Answers: 119
#21
In reply to #17

Re: Why Would a File Grow?

02/08/2010 10:18 AM

Perhaps I'm misunderstanding your app. You did say in your original post that the operators add X amount of data per shift. That sounds like data entry to me.

Anyway, the tables for inputting info could be made to look very much like your spreadsheet, you can turn on file locking so no two people are stepping on each other while entering data, and you can have up to 10 concurrent users in the database looking up info or updating data. And, the database can be available from anywhere on the network you choose to install a shortcut to it.

Just a thought,

Hooker

Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#23
In reply to #21

Re: Why Would a File Grow?

02/08/2010 10:56 AM

yea, they have to put data in, but it's as much or more for the shifts to follow then it is for that operator. example is he logs how many parts he did on his shift, the spreadsheet tells him how many are complete on the order, the next operator needs to know that, it's not tracked anywhere else. So shifts to follow need to see what he did, it also tracks the S/N the guy assigned.

there are also hyperlinks to all his set up sheets and work instructions, by part number...

So, it works great, if I can only keep the file size down so it will save and open without locking up...

__________________
Be careful of what you wish for .....
Register to Reply
Guru

Join Date: Dec 2009
Posts: 581
Good Answers: 15
#20
In reply to #16

Re: Why Would a File Grow?

02/08/2010 10:13 AM

Good answer. Using Excel for this purpose is like using a screwdriver as a chisel. Everyone uses Excel because it's what they know. Access or any other multi-user database app is the solution to this problem. It comes with "plenty" of data security and real-time merge (if not display) infrastructure.

As for the mysterious growth, my vote is for the expanding by chunks theory. Instead of adding 1KB to the file, Excel grabs 12MB because it can and won't have to expand again for a while.

__________________
Ignorance is no sin. Willful ignorance is unforgiveable.
Register to Reply
Power-User

Join Date: Jun 2009
Location: Australia
Posts: 277
Good Answers: 45
#13

Re: Why Would a File Grow?

02/06/2010 12:45 AM

I can't give you the technical reason why, but what you see is "normal". I had a simple photo database/view spreadsheet set up (that referenced a separate folder containing 4000 jpg images) and I pasted and deleted individual images as determined by a macro search into and out of the single Excel "viewing" page. The file grew to something like like 10M when it contained no photographs and about 400K of macro and index "data".

All the simple things like deleting spare lines. saving, copying to a new file name, renaming (is there a compacting) etc did nil, nothing, zilch. I knew that the real size could not possible be 10M and persisted.

In in the end I did something like open a new file and paste and copy just the cells into the new document, and probably imported the considerable body of macros across as a separate exercise, and by that mechanism I got the file size down to around 400K.

I can only assume that Excel keeps on logging some sort of history or index (maybe for recovery) that is is either not needed or no longer relevant in the background - and that it is not able to be seen or deleted by a standard/documented approach.

I was using Excel 2000, but I suspect this phenomena is likely to exist in other versions.

Register to Reply
Anonymous Poster
#25

Re: Why Would a File Grow?

02/17/2010 10:00 PM

maybe some one said this, but based on what you say you're tracking, why not a date base instead of a spreadsheet. Can set up form or forms for your shift users, too.

Register to Reply
Anonymous Poster
#26

Re: Why Would a File Grow?

02/19/2010 7:18 AM

The default file cluster size, when a hard drive is initially formatted prior to the installation of an operating system, is usually in blocks of 512kb. When a file like a picture for example is just under the default cluster size, the remaining free space within that cluster is called file slack space. Clusters that are 100% unused are called free space. When a file is marked for deletion and moved from the garbage to complete the deletion process, the entire block of 512kb is tagged as available and is then recognized as open hard drive space again. It can then eventually be over written as needed by the operating system. Up until the operating system reuses this recycled block of storage area, the old file that used to reside there before before deletion is still there however the identifiers originally associated with that file when it was in working order are removed in a manner that it is not recognized as the format used in that particular operating system leaving it basically ignored as free space. You can probably measure your file size changes and they will be proportionally equivalent to multiples of 512kb. Hard drive cleaners like Webroot's Window washer offer cleaning of both file slack and free space to make best use of the available slack in multiple files not using the complete 512kb per cluster. There will always be some slack. Some Programs or applications may have the file size effeciency built into how they store complete file sets. Basically these applications are doing the slack file maintenence instead of a 3rd party program like Window Washer. Windows basically does this when defragging also. Don't worry, your network is not becoming self aware lol. Hope this helps

Register to Reply
Guru
Engineering Fields - Manufacturing Engineering - New Member Hobbies - Target Shooting - New Member United States - Member - New Member Hobbies - Hunting - New Member

Join Date: Dec 2006
Location: Charlotte, NC USA
Posts: 791
Good Answers: 17
#27
In reply to #26

Re: Why Would a File Grow?

02/22/2010 7:51 AM

Hi all,

thanks for all your help, it was worth it to me. This project and this spreadsheet has become extremely important to my company. My boss showed to higher up's and they wanted it to go global. As you can well imagine, I needed it to work.

So here's what happened. The spreadsheet crashed (again) and as always, all my formats were wiped out and a few of my formulas. But this time, instead of deleting the file, I read the recovery log that Excel created.

It listed a bunch of things it "corrected" and said the file was safe to use. ummmm....

So I reformatted the lost information, put in the lost formulas and checked the size.. 1.3M (not bad, it was well over 7M)

Now it's been running for over a week, and the current size is 1.34M.

Problem solved... thanks for the help, but it seems Excel knew of the problem and was trying to help me.

Laby

__________________
Be careful of what you wish for .....
Register to Reply
Register to Reply 27 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); chrisg288 (4); cwarner7_11 (1); Doorman (2); Hendrik (1); Hooker (2); Labyguy (10); Lynn.Wallace (1); nikunjjain (1); phoenix911 (2); TrevorM (1)

Previous in Forum: Parallel Port Interfacing in Visual Basic   Next in Forum: CAD Drawings

Advertisement