[AccessD] xyz* faster than *asd

Drew Wutka DWUTKA at Marlow.com
Fri Jul 8 15:04:34 CDT 2011


Boy, you're answer was WAY shorter then mine! <grin>

I went into detail though, to explain the process a bit.

Drew

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond
Sent: Friday, July 08, 2011 2:57 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] xyz* faster than *asd

Like Drew my answer is: if you have no index on the field there will be
no difference to performance because the query engine then has to do a
table scan. But if you have an index on the field then the query engine
can use the index for LIKE xyz*, but it has to do a table scan for LIKE
*xyz.
Asger

----- Original meddelelse -----

> Fra: jwcolby <jwcolby at colbyconsulting.com>
> Til: Access Developers discussion and problem solving
> <accessd at databaseadvisors.com>
> Dato: Fre, 08. jul 2011 19:24
> Emne: [AccessD] xyz* faster than *asd
> 
> Does anyone know of a reason that LIKE is faster with the * in back
> instead of the front of a string
> to search by in the where clause?
> 
> --
> John W. Colby
> www.ColbyConsulting.com
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
The information contained in this transmission is intended only for the person or entity 
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business 
Sensitive material. If you are not the intended recipient, please contact the sender 
immediately and destroy the material in its entirety, whether electronic or hard copy. 
You are notified that any review, retransmission, copying, disclosure, dissemination, 
or other use of, or taking of any action in reliance upon this information by persons 
or entities other than the intended recipient is prohibited.





More information about the AccessD mailing list