MySQL Forums
Forum List  »  Newbie

Long Execution Time Using LIKE Operator
Posted by: mark anthony reyes
Date: May 20, 2010 01:13AM

200k plus records
Engine : MyISAM
Collation : utf8_unicode_ci

tblInfo
id varchar(8) not null
lastname varchar(100) not null
firstname varchar(100) not null
middlename varchar(100) not null

Existing indexes
Indexes: id
Columns: id
Index Type: unique

Indexes: lastname
Columns: lastname
Index Type:

Indexes: firstname
Columns: firstname
Index Type:

Indexes: middlename
Columns: middlename
Index Type:


 SELECT tblInfo.* FROM tblInfo WHERE lastname LIKE '%reyes%' AND firstname LIKE '%mar%'

(79 row(s) returned)
Execution Time : 00:02:15:736
Transfer Time : 00:00:00:000
Total Time : 00:02:15:736

We are planning to change our DB From mssql to mysql but my problem is this execution time, it takes very long.
In mssql it only takes 1 or 2 sec.

Please help.

Thank you very much

Options: ReplyQuote


Subject
Written By
Posted
Long Execution Time Using LIKE Operator
May 20, 2010 01:13AM


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.