>: Does anybody have an recommendations on the best way to size the
>: transaction log for a database? I typically allocate 25% of whatever I
>: have allocated for data to my log. So if i I have a 10GB database I
>: would have a 2500MB log. I would also expand my log everytime I exand
>: my database to keep it sized at 25% at all times.
>I think that the size of the log is more related to the update activity
>on the database than to its size. I have a 1.6 GB database with a 30 MB
>log that has less updates than a 30 MB database (also with a 30 MB log).
Exactly right - I too have a 1.6 GB database, with a 35 MB log. In fact, I
have more than 30 databases on my server, ranging from 200MB to 3GB - and
for all but a handful of those, I've set the log size to ~35 MB. I used to
use that 20-25% rule-of-thumb, until I added up the cost in wasted disk space.
Now I keep my logs as small as possible, and rely on the thresholds
(and BackTrack) to periodically clean-out the committed transactions.
Quote:>During the daytime our logs are dumped every hour, unless a threshold
>is reach which happen very infrequently. Looking at the size of our
>dumps, a 30 MB log is sufficient for our databases.
Just asking - is there a downside to relying on thresholds to clean out
the transaction logs, rather than automatically doing it every hour?
To date, I've had no problem with thresholds alone doing the job...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database Administrator Phone: (301) 838-0200
The Institute for Genomic Research FAX: (301) 838-0208
9712 Medical Center Drive
Rockville, MD 20850
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>+-----------------------------------------------------------+
>| Luc Van der Veurst ISUG Enhancements Co-Chair |
>| Academic Hospital, VUB Voice : 32 - 2 477 69 80 |
>| Laarbeeklaan 101 Fax : 32 - 2 477 69 75 |
>+-----------------------------------------------------------+
>Next ISUG Conferences : Sydney, Australia 10-11 February 1997
> Bangkok, Thailand 13-14 February 1997