Re: [PERFORM] optimizing LIKE '%2345' queries

2006-07-04 Thread Chris
Gene wrote: Thanks for the suggestion. Actually I went ahead and created a reverse function using plpgsql, created an index using reverse column and now my queries use "where reverse(column) like reverse('%2345') and it's using the index like i hoped it would! Now if I could figure out how to opt

Re: [PERFORM] optimizing LIKE '%2345' queries

2006-07-04 Thread Gene
Thanks for the suggestion. Actually I went ahead and created a reverse function using plpgsql, created an index using reverse column and now my queries use "where reverse(column) like reverse('%2345') and it's using the index like i hoped it would! Now if I could figure out how to optimize like '

Re: [PERFORM] optimizing LIKE '%2345' queries

2006-07-04 Thread Tarhon-Onu Victor
On Sun, 2 Jul 2006, Gene wrote: can use an index and perform as fast as searching with like '2345%'? Is the only way to create a reverse function and create an index using the reverse function and modify queries to use: where reverse(column) like reverse('%2345') ? Hmm.. interesting.

Re: [PERFORM] optimizing LIKE '%2345' queries

2006-07-03 Thread Mario Weilguni
Am Sonntag, 2. Juli 2006 23:50 schrieb Gene: > Is there any way to create a reverse index on string columns so that > queries of the form: > > where column like '%2345'; > > can use an index and perform as fast as searching with like '2345%'? > > Is the only way to create a reverse function and cre

[PERFORM] optimizing LIKE '%2345' queries

2006-07-02 Thread Gene
Is there any way to create a reverse index on string columns so that queries of the form: where column like '%2345'; can use an index and perform as fast as searching with like '2345%'? Is the only way to create a reverse function and create an index using the reverse function and modify querie