MySQL Forums
Forum List  »  InnoDB

Re: Different "Fetch Time" for Same Query with Diff Indexes
Posted by: Peter Brawley
Date: March 18, 2018 06:32PM

If you'd like us to read and understand your queries, consider formatting them for human readability inside BBCode code tags.

A Unique key on a single orimary key column is entirely redundant. Lose it.

Why did you add three one-column indexes? MySQL generally can use one index per table instance in a query.

Let's see the Explain result (inside BBCode code tags) for the query under each of the two conditions, ie with the added index and with it. Also how much RAM is there and what is innodb_buffer_pool_size?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Different "Fetch Time" for Same Query with Diff Indexes
72
March 18, 2018 06:32PM


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.