Search Postgresql Archives

Re: index on ILIKE/LIKE - PostgreSQL 9.2

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

 



Hi there,

The problem was solved by using lowercase

New index:
CREATE INDEX CONCURRENTLY  ON public.ja_jobs (clientid, lower(title) varchar_pattern_ops, time_job);

New query:

SELECT DISTINCT title
                FROM public.ja_jobs WHERE lower(title) LIKE lower('
RYAN WER')
                AND clientid = 31239 
                AND time_job > 1457826264
                order BY title
limit 10;


- Improvement of 1400%


Thanks

Lucas


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux