MySQL Forums
Forum List  »  Optimizer & Parser

Re: Make this faster?
Posted by: Levi Tedder
Date: January 08, 2007 02:44AM

Hi

I've tried to make columns as short as possible, for example char(32) on md5_key, but it's still slow.

Do you think I should redesign the table a bit more? Maybe the md5_key should not be the primary key? Perhaps I should create an autoincrement key. Now when I execute the query it takes a while the first time, but the second time it's cahced and it's fast. If I add some records, the query slows down again. Maybe the "primary index" is rebuilt or something on each insert?

Or maybe I should create a new table which stores counts for each month from files, filesystem and the other tables I use. And this is updated each time a new record is inserted...

Thanks
Levi

Options: ReplyQuote


Subject
Views
Written By
Posted
3729
January 04, 2007 07:38AM
2264
January 04, 2007 10:21AM
2222
January 04, 2007 11:51AM
2329
January 04, 2007 03:34PM
2306
January 05, 2007 02:40AM
2227
January 05, 2007 05:07AM
2224
January 05, 2007 06:55AM
2256
January 05, 2007 08:31AM
2275
January 05, 2007 08:33AM
2440
January 05, 2007 08:45AM
2238
January 05, 2007 08:31AM
2282
January 05, 2007 08:45AM
2360
January 05, 2007 03:11PM
Re: Make this faster?
2259
January 08, 2007 02:44AM
2199
January 08, 2007 04:28AM
2242
January 08, 2007 04:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.