![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a db that grew 8.2GB in one week and don't understand why. There are three tables added to the db daily. I calculated the spaceused by each of the three tables for a period of two weeks. The tatal amount of data added to the db for the three daily tables over the past two weeks was about 4MB yet the db grew approximately 8.2GB. WHY? Can someone please tell me what I should look at so that I can understand what is going on? |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Simon and John thanks for both of your replies. Also in response to both of your assumptions, I am running a 'Simple' recovery model. My data file is 47,678,488,576 bytes or 47.6GB while my tlog file is 524,288,000 bytes or 524.2MB. Two weeks ago I started to monitor the growth of the database. As I previously mentioned, we add three tables to the database daily. The tatal size of all of the tables over a two week period (3 tables x 10 days) is approximately 4MB. Given these numbers, I don't understand how the db size could increase 8.2GB in a week. The reason that I say in a week is because two weeks ago I tracked the size of the db file on a daily basis. The db was 39,403,651,072 or 39.4GB. I wasn't feeling well last week so I didn't track the database growth for a week. I starting tracking the databases growth again yesterday and noticed the 8.2GB difference from a week ago. On another note, I do understand your suggestion(s) of shrinking the db or the db file. My issue though is how can a db grow 8.2GB when only 4MB of data is added. Remember last week the db size was unchanged with approx. 2MB of additional data while this week the file has grown 8.2GB with the same addition of 2MB. The db contains 515 tables, but most of the tables are the daily tables which do not grow. Only the current day's daily tables grow and then are used for historical reference. The core of the db contains approx. 38 tables which are mostly static. If there is change in the core tables it is insignificate compared to the growth of the daily tables. I know that we might not be able to figure out exactly what is happening. I am only trying to gain a better understanding of the way databases can grow. Perhaps each of the tables or a significate number of them outgrow their allotted space and increased their reserved space. This might account for the physical growth??? Going on the above assumption I reran the spaceused sp and did notice an increase in the reserved space for the tables of two weeks ago. My tracking only goes back two week, but if the increase is applied by 515 tables this may explain the anomaly. Any thoughts? |
![]() |
| Thread Tools | |
| Display Modes | |
| |