﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on What were you doing with last year logs?</title><description>SQLAdmin,
  
I am actually talking about the logs table for Subtext, not the DB logs
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment12</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment12</guid><pubDate>Fri, 29 Apr 2011 17:39:07 GMT</pubDate></item><item><title>SQLAdmin commented on What were you doing with last year logs?</title><description>Shrinking database might affect performance since the sql engine requires empty space to work efficiently
  
So a maintenance over data and log files when server load is minimum or minimized to leave enough space for database engine not to extend datafiles within day time is important.
  
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment11</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment11</guid><pubDate>Fri, 29 Apr 2011 12:57:06 GMT</pubDate></item><item><title>Eli Weinstock-Herman commented on What were you doing with last year logs?</title><description>I agree the default settings for a new MS SQL Server DB leave a lot to be desired, although I think the reason they leave it unbounded by default is because they are trying to provide a situation that works in all environments. Personally I would put the max size at 10MB and force implementers to define a max size and growth strategy, with some easy cookie cutter options (like blogging) for users that don't need to spend the time learning a whole DB system just to turn on something basic.
  
It isn't difficult to add bounds (database properties, files, change autogrowth settings) or if you want to limit the amount of growth you can switch the database's recovery model to Simple mode (somewhere else in properties - in Simple it only uses the transaction log for in process transactions so it won't grow the database log file unless you execute a transaction that is enormous enough). This should also solve the fragmentation issue as long as the log file size is large enough to handle your current transaction sizes (as it won't need to autogrow and won't need to be shrunk).
  
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment10</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment10</guid><pubDate>Mon, 25 Apr 2011 18:35:36 GMT</pubDate></item><item><title>Gian Maria Ricci commented on What were you doing with last year logs?</title><description>With Sql server usually it is best keeping logs in another filegroup stored on different physical file, you can avoid backing up logs each day, and the main file, with important data suffer less for fragmentation.
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment9</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment9</guid><pubDate>Wed, 20 Apr 2011 07:34:19 GMT</pubDate></item><item><title>Ayende Rahien commented on What were you doing with last year logs?</title><description>RickRock,
  
We actually do handle log trimming
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment8</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment8</guid><pubDate>Wed, 20 Apr 2011 07:34:08 GMT</pubDate></item><item><title>RickRock commented on What were you doing with last year logs?</title><description>LOL, Ayende, you which tool eats up 4 Gig for its logs in a breeze on my box and does not offer rolling logs (yet)?
  
  
NHProf   :-)
  
  
See it as a feature suggestion.
  
  
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment7</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment7</guid><pubDate>Wed, 20 Apr 2011 07:24:16 GMT</pubDate></item><item><title>Ayende Rahien commented on What were you doing with last year logs?</title><description>Frank,
  
Just host RavenDB embedded.
  
As for the rest, give me some time :-)
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment6</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment6</guid><pubDate>Tue, 19 Apr 2011 19:29:59 GMT</pubDate></item><item><title>Frank Quednau commented on What were you doing with last year logs?</title><description>Wayne, find me a host that hosts RavenDB at a price competitive to winhost, and I'll start writing a blog engine running off RavenDB :)
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment5</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment5</guid><pubDate>Tue, 19 Apr 2011 18:45:53 GMT</pubDate></item><item><title>wayne-o commented on What were you doing with last year logs?</title><description>You're using sql server? pfft
  
  
;)
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment4</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment4</guid><pubDate>Tue, 19 Apr 2011 14:21:38 GMT</pubDate></item><item><title>tobi commented on What were you doing with last year logs?</title><description>I hate deleting data. Who knows what information you could derive from those stats in the future? I recomment moving that table to an archive DB (delete from tab output into ArchiveDB.ArchiveTab) or a bcp file.
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment3</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment3</guid><pubDate>Tue, 19 Apr 2011 11:00:03 GMT</pubDate></item><item><title>Ayende Rahien commented on What were you doing with last year logs?</title><description>Mark,
  
When you remove 90% of the data, you probably need to do that anyway, since you already fragmented everything by removing the data.
  
Also, this makes the size of backups much more managable
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment2</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment2</guid><pubDate>Tue, 19 Apr 2011 10:48:47 GMT</pubDate></item><item><title>Mark S. Rasmussen commented on What were you doing with last year logs?</title><description>Do note that shrinking the database is one of the worst things you can do for performance, unless you ensure to defragment all of your indexes afterwards. Granted, with a 200MB database, you'll probably be fine as the dataset is so small.
</description><link>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment1</link><guid>http://ayende.com/4816/what-were-you-doing-with-last-year-logs#comment1</guid><pubDate>Tue, 19 Apr 2011 09:49:26 GMT</pubDate></item></channel></rss>