MySQL Forums
Forum List  »  Performance

Re: performance issue with VARCHAR index
Posted by: Rick James
Date: August 24, 2010 11:36PM

> As you can see there is an index on all of the where clause fields.

No. You have separate indexes on various fields.

The index you need is a "compound" one:
INDEX(userName, date)
And it may as well replace the one on (userName).

Also, I suspect innodb_buffer_pool_size is low. It should be set to about 70% of available RAM.

Options: ReplyQuote


Subject
Views
Written By
Posted
8777
August 23, 2010 06:12PM
Re: performance issue with VARCHAR index
2758
August 24, 2010 11:36PM


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.