« More or less back to normal | Main | Everything running well! »

Live and Learn

So I have been watching the site really closely today and the performance has just been terrible. I went ahead and turned off the Bragging Rights stats, and was almost amazed at the performance jump. It makes sense... those stats do three queries for every data hit... and since the data rarely changes, it doesn't make sense to do it that way.

So I will be building a cached model for that in my spare time. Hopefully I can get those stats back up and running in the next few days. For now, they are off line until I can complete the work.

I also noticed that the "watch lists" were running for every user, even when users didn't have an entry in the watch list table... so I put in a little hack to solve that. I will be working on that data model too over the next few days to make it perform better.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451611469e200d834e9a9b453ef

Listed below are links to weblogs that reference Live and Learn:

Comments

Are you guys using stored procedures? That may be more efficient.

Hi Captain... we are actually not using any stored procedures... most of our site is service driven... so all of the SQL is in the service tier... We then transform those service outputs using XSL... they are many of the same services that are published as our API... however we have a bunch of unpublished ones we use as well.

The trade off for stored procs performance wise really depends on what you are doing and honestly we are only doing a lot of simple selects... we aren't doing many data heavy things that require multiple queries, temp tables and such... where a compiled stored proc would get you a performance gain.

But you are right, I haven't looked at using stored procs in mySQL for sometime... maybe I should revisit it.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment