4 Replies Latest reply on Jun 6, 2014 10:03 AM by NathanielHirtz

    Similar Databases with Drastically Different File Sizes

    NathanielHirtz

      Title

      Similar Databases with Drastically Different File Sizes

      Post

           I am working on some database files for an engineering firm using FileMaker Pro 7 (old, I know, but it's what they have and what they want to use).  Most of the databases are quite similar in terms of their layouts and their fields, but the file sizes for the databases are all over the place and do not correspond to the number of records in the databases.

           For example, one database has nearly 3500 records with a file size of only 2 MB.  But a different database that has less than 200 records has a file size of nearly 50 MB.  I cannot seem to find the reason for the vast disparity in the file sizes.

           If more information is needed, please do not hesitate to ask and I'll supply what I can.  As a heads-up, I am not a database expert and have no formal training at all.  I've picked up what I've needed to do my job and that's it.

           Thanks!

        • 1. Re: Similar Databases with Drastically Different File Sizes
          philmodjunk

               The number of records in a table has very little to do with the size of the file. The number of bytes of data needed for a given record multiplied by the number of records would be a better indication.

               But the largest factor in file size will be the presence of container fields in the table and whether physical copies of large files have been inserted into that container field or if data was inserted "by reference".

               Large complex layouts with lots of graphics or a hi res graphic image as the back ground can be a significant factor increasing the size of your file.

               And there can be blocks of space set aside for objects no longer in the file due to previous design changes made.

               You might try using "save a copy as" with the "compacted copy" option to see if that reduces the size of any of these files by a significant amount.

          • 2. Re: Similar Databases with Drastically Different File Sizes
            NathanielHirtz

                 All of the databases I am working with have container fields.  They used to have physical copies of files, but earlier this summer I went through and changed them all to links ("by reference") which decreased the file sizes tremendously (they were hovering around 300 MB).

                 So, that shouldn't be the reason for why they have vastly different file sizes.

                 Also, these are very simple layouts with no frills.

                 I have tried the compacted copy option on all of the files, too, and they will not get any smaller.

                 Is there a way to check if the file has blocks of space set aside that it no longer needs and, if so, is there a way for it to "delete" those blocks?

                 Thanks!

            • 3. Re: Similar Databases with Drastically Different File Sizes
              philmodjunk

                   Save a copy/compacted is supposed to do that.

                   Another user recently reported (with the current version of Filemaker, not v7), saving a clone of the file and importing all data back into the file to get a much smaller file size. This would also rebuild all field indexes--which can also be s significant factor in file size.

                   You might also try recovering the files and compare the size of the recovered copies to the originals.

              • 4. Re: Similar Databases with Drastically Different File Sizes
                NathanielHirtz

                     I went in and removed all field indexes thinking that might be the issue, but it did not seem to have any effect.  Most of the fields of these databases, save for one, contain very little text and the same values are repeated often.

                     The recovering did not change the file size, but the cloning and importing did.  The 50 MB file reduced down to 200 KB.  Amazing!

                     Thanks for the help!  I'm not sure why it changed the file size so much since the indexing had already been turned off, but I'll take the results without complaining.

                     Thanks again!