I have created a database that imports a large number of xls data and puts that data into 3 related tables.
The first table holds the users data, linked to a set of accomplishments semi annually, linked to the particulars of that accomplishment in the last table. Record count is @ 600 records in Table 1 and @ 4000 each in table 2 & 3. Not tons of data.
I use a sub to automaticallly import all the xls files in a directory, one at a time, into temp tables where I extract the data into the proper permenant tables. The methods I use are a straight move, via WITH, to the first table (a dictionary object is used to check for duplicate data). For the second, I use a SQL statememt to ensure that data isn't duplicated in the second table, if it isn't duplicate data, I move the entry into the table. I do the same with the third table.
It all works extremely well, however, the database increases in size to over 100MB after the import!!! If I compress the database, it compresses down to about 3MB!!! Compression takes over a minute to accomplish. (I have included a compress database button as a quick fix, but I would like to find out what I did wrong.
I can post the code if it would help, or is the bloat inherent in my method?
Thank you,
Joe Barneski
The first table holds the users data, linked to a set of accomplishments semi annually, linked to the particulars of that accomplishment in the last table. Record count is @ 600 records in Table 1 and @ 4000 each in table 2 & 3. Not tons of data.
I use a sub to automaticallly import all the xls files in a directory, one at a time, into temp tables where I extract the data into the proper permenant tables. The methods I use are a straight move, via WITH, to the first table (a dictionary object is used to check for duplicate data). For the second, I use a SQL statememt to ensure that data isn't duplicated in the second table, if it isn't duplicate data, I move the entry into the table. I do the same with the third table.
It all works extremely well, however, the database increases in size to over 100MB after the import!!! If I compress the database, it compresses down to about 3MB!!! Compression takes over a minute to accomplish. (I have included a compress database button as a quick fix, but I would like to find out what I did wrong.
I can post the code if it would help, or is the bloat inherent in my method?
Thank you,
Joe Barneski