koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] query optimization


From: paul POULAIN
Subject: [Koha-devel] query optimization
Date: Tue May 14 02:26:02 2002
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313

Many queries are build with :

(title like '$key[0]%' or title like '% $key[0]%')

I was wondering why :
* title like '$key%' is index optimizable
* title like '% $key%' is NOT index optimizable.

optimizable OR not optimizable === NOT optimizable.

So the resulting query is not optimizable.

So, what's the interest of such a string, as "title like '%'.$key.'%'" has the same result ?
--
Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]