Re: [PERFORM] Huge table searching optimization

2010-04-05 Thread Oliver Kindernay
Thanks to all, now it is 0.061 ms :) 2010/4/5 Tom Lane : > Andres Freund writes: >> On Monday 05 April 2010 16:28:35 Oliver Kindernay wrote: >>> i am using this request: >>> select url from test2 where url ~* '^URLVALUE\\s*$'; > >> Depending on your locale it might be sensible to create a text_pa

Re: [PERFORM] Huge table searching optimization

2010-04-05 Thread Tom Lane
Andres Freund writes: > On Monday 05 April 2010 16:28:35 Oliver Kindernay wrote: >> i am using this request: >> select url from test2 where url ~* '^URLVALUE\\s*$'; > Depending on your locale it might be sensible to create a text_pattern_ops > index - see the following link: > http://www.postgr

Re: [PERFORM] Huge table searching optimization

2010-04-05 Thread Andres Freund
Hi, On Monday 05 April 2010 16:28:35 Oliver Kindernay wrote: > Hi, I have table with just on column named url (it's not real url, > just random string for testing purposes), type text. I have lots of > entries in it (it's dynamic, i add and remove them on the fly), 100 > 000 and more. I've created

Re: [PERFORM] Huge table searching optimization

2010-04-05 Thread hubert depesz lubaczewski
On Mon, Apr 05, 2010 at 04:28:35PM +0200, Oliver Kindernay wrote: > Hi, I have table with just on column named url (it's not real url, > just random string for testing purposes), type text. I have lots of > entries in it (it's dynamic, i add and remove them on the fly), 100 > 000 and more. I've cre

[PERFORM] Huge table searching optimization

2010-04-05 Thread Oliver Kindernay
Hi, I have table with just on column named url (it's not real url, just random string for testing purposes), type text. I have lots of entries in it (it's dynamic, i add and remove them on the fly), 100 000 and more. I've created index on this table to optimize "searching". I just want to test if s