Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg Expr searches is really slow!

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
US
For example, if this was in the where clause:

TRIM(DATABASENAME) like 'test\_db\__mine' ESCAPE '\'"

I'd be searching for test_db_<*>mine where <*> is any single character.

What I noticed is that such a filter will significantly slow down a query. Anyone else noticing this? Makes sense though, since there the system must linearly search for matches and mismatches to the expression.
 
Unless Datbasename is a varchar field I don't think you need the TRIM function. If that is true removing it should help the speed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top