MySQL Forums
Forum List  »  Performance

Re: Best Index Strategy
Posted by: Rick James
Date: August 10, 2015 07:17AM

Would this give you the 'right' answer for query 2?

SELECT COUNT(*) FROM `sales_flat_order_address` AS `soas`
and soas.address_type = "billing"
WHERE (telephone LIKE '%7766095413%');

If so, then the index I suggested would help this even if you keep the wildcards.

How much RAM do you have?
What is the value of innodb_buffer_pool_size?

Options: ReplyQuote


Subject
Views
Written By
Posted
2044
August 09, 2015 11:35PM
814
August 10, 2015 07:02AM
Re: Best Index Strategy
765
August 10, 2015 07:17AM
744
August 10, 2015 11:30PM
741
August 12, 2015 10:53PM
712
August 15, 2015 04:34PM
717
August 16, 2015 11:53PM


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.