Re: REGEXP is not optimized?
Posted by:
Toa Sty
Date: January 05, 2007 08:57AM
Quote
PS. I see my post will look ugly. Better copy-paste it to notepad for easy reading. Are there any tags supported to make it look better?
Using [ code ] tags works :)
Regarding the REGEXP problem you're seeing, have a look at this and the reply I gave - it's pretty much the same issue just with REGEXP instead of abs.
http://forums.mysql.com/read.php?115,123254,123254#msg-123254
For your specific problem you might be able to get away with something like where name >='a' and name <='z' (or similarly: where name between 'a' and 'z') as that should use an index just fine.
Toasty
-----------------------------------------
email: 'toasty'*3 at gmail
Subject
Views
Written By
Posted
3517
December 15, 2006 07:54AM
Re: REGEXP is not optimized?
2465
January 05, 2007 08:57AM
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.