Investigating Blogging Server Software.

A few days ago I tried to post my second blog entry of the month. Windows Live Writer returned a very helpful error message from my server that told me I was out of disk space on the SQL Server. That was troubling because I don't have that many blog entries. It was late though and I didn't feel like debugging the server software so I called it a night.

I finally got around to digging into the SQL database this morning and discovered the problem. Subtext (my blogging server software here) stores referrals in a database table. Well, that table had finally gotten big. Too big. So I jumped on the SQL administration console and truncated the subtext_Log, subtext_Referrals, subtext_EntryViewCount, and subtext_URLs tables. The fact that you're reading this blog entry means that I finally fixed it.

Naturally the next thing I need to do in my "copious free time" is to figure out how to avoid this problem in the future. I know the best answer is to work with the Subtext community and upgrade to the latest build then add a feature to clean up these logging type entries from the database on demand (at least) or "automagically" (if possible). The problem is that I'm not sure I want to stay on Subtext.

The main concern I have with Subtext is that it is just big. There are about 45,000 lines of C# code (20,000 lines of comments). I expect all that code has its uses since Subtext has support for hosting multiple blogs and image galleries and such. However, I'm not terribly interested in all that stuff.

BlogEngine.NET is a new kid on the block and interesting because it's about 16,000 lines of code (5,000 lines of comments). It does seem to be targeted at an individual blogger and is up with the latest blogging technology. However, on my first high level pass through the BlogEngine.NET code I found the formatting of the code style to be pretty inconsistent which is an indication (in my mind) of how much the code is cared for.

Finally, Fredrik Grohn created his own blog engine with something like 300 lines of C# code. However it doesn't do comments, trackbacks or any other blogging functionality above and beyond RSS syndication. That makes it really bare bones but maybe a reasonable place to start from scratch... if I wanted to do that.

Ultimately, I'm probably going to stay with Subtext (and write a little utility to regularly truncate the logs) because I don't really have the cycles to spend getting into a new codebase and community. While I'm sure I could learn some cool new tricks playing with blogging server software I expect it would just be a distraction from the much larger projects that I'm working on in my free time. However, I have to admit that writing unit tests for BlogEngine.NET as a way to learn the codebase and help improve/maintain quality of the codebase has quite a bit of appeal to me.

Anyway, I'm back. More blogging to follow.

 

posted @ Wednesday, January 30, 2008 5:44 AM

Print

Comments on this entry:

# re: Investigating Blogging Server Software.

Left by Anders M. at 1/30/2008 7:57 AM

dasBlog runs without SQL and is even strong enough to host http://www.hanselman.com/blog/

# re: Investigating Blogging Server Software.

Left by Heath Stewart at 1/30/2008 8:41 AM

Why not disable referral tracking? MSDN Blogs did this for quite some time for the same problem. If you want to track referrals, there are many sites that can do this by you placing an image or something on your site and they store the data. That would make a good alternative.

# re: Investigating Blogging Server Software.

Left by Rob Mensching at 1/30/2008 8:49 AM

Anders, I looked at dasBlog a long time ago and I didn't care for the "look of it". Also, I require a SQL backend because my hoster requires ASP.NET code to run in Medium trust. Updating a local XML file isn't an option.

Heath, as far as I can tell there is not setting exposed to do that. Tweaking the Subtext code is an option but, well, that's what this whole blog entry is about.

# re: Investigating Blogging Server Software.

Left by Anders M. at 1/30/2008 9:23 AM

When you say "the looks of it" I assume you mean the code and not the GUI, I did second that 4 years ago when I first blogged, and since then I have only looked at the code sparsely. According to the development they support medium trust now and are taking time to refactor the code.

Anyway, it's the only one I have tried so I don’t have a broad perspective. Btw, it supports Windows Live Writer which I think is important.

# re: Investigating Blogging Server Software.

Left by Brian R at 2/1/2008 9:27 AM

I'm not endorsing it yet... but the makers of Community Server have released a small and targeted personal blog engine called Graffiti. You can download it from http://graffiticms.com/.

# re: Investigating Blogging Server Software.

Left by Blog king at 2/2/2008 3:53 AM

I tried the Graffiti engine and I am quite excited by it. It is small, fast but functional.

# re: Investigating Blogging Server Software.

Left by Leon Zandman at 2/9/2008 11:54 PM

Why don't you just switch to WordPress. OK, it's written in PHP and not in ASP.NET. But it's a stable package.

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 7 and type the answer here:
 

Live Comment Preview: