« Scamming Technorati. | Main | Groovy is as Jython... »

Couple more indexes.

Rick Ross and I were trying to diagnose some heavier-than-usual load on JRoller last night by watching the MySQL query log. We noticed that some queries were still examining way too many rows and based on this we came up with a couple of additional indexes. After we applied the new indexes, load returned to normal levels (i.e. less than 0.1). These should work on either Roller 0.9.8 or Roller 0.9.9-dev and they will be included in future releases in either branch:

create index userrole_username_index on userrole( username );
create index weblogentry_pubtime_index on weblogentry( pubtime, publishentry, websiteid );
Comments:

I'm interested in learning more about setting up indexes in MySQL, or any database for that matter. How do you figure out which tables/columns to set them on? Is there some good documentation I can read?

Posted by Matt Raible on January 07, 2004 at 01:50 PM EST #

I would like to find some good docs on that myself. I know only the basics, but I think the JRoller server-load stats show that we have a pretty good set of indexes in Roller now.

Posted by Dave Johnson on January 08, 2004 at 02:33 AM EST #

haha I'd be curious just to see what happens to performance if you put an index on every single column of the database.

Posted by Will Gayther on January 08, 2004 at 10:21 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed

« Scamming Technorati. | Main | Groovy is as Jython... »

Welcome

This is just one entry in the weblog Blogging Roller. You may want to visit the main page of the weblog

Related entries

Below are the most recent entries in the category Roller, some may be related to this entry.