MySQL Forums
Forum List  »  Newbie

Re: Group-wise Maximum performance
Posted by: Felix Geerinckx
Date: May 03, 2005 02:19PM

Jon Richards wrote:
> Ok here's the result of describe table:
>
> 'name', 'varchar(255)', '', 'PRI', '', ''
> 'time', 'bigint(20)', '', 'PRI', '0', ''
> 'type', 'int(11)', '', 'PRI', '0', ''
> 'data', 'text', 'YES', '', '', ''

As noted in another post in this thread, it would be interesting to check wheter your query uses the multiple primary key for all columns (I have my doubts) - check this with EXPLAIN.

If not, try to create an index on the time column:

ALTER TABLE foo ADD INDEX (time);

--
felix

Options: ReplyQuote




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.