Re: [PERFORM] updating statistics on slow running query

2014-11-14 Thread Jim Nasby
On 11/10/14, 4:52 PM, Eric Ramirez wrote: Hi Matteo, Thanks for your suggestions, I just run some test with ILIKE and LIKE, and ILIKE is consistently slower so I think I will keep the Lower functions. As per your suggestion, I have switched indexes to use GIN type index, they seem to build/r

Re: [PERFORM] updating statistics on slow running query

2014-11-10 Thread Eric Ramirez
Hi Matteo, Thanks for your suggestions, I just run some test with ILIKE and LIKE, and ILIKE is consistently slower so I think I will keep the Lower functions. As per your suggestion, I have switched indexes to use GIN type index, they seem to build/read a bit faster, still the Recheck task contin

Re: [PERFORM] updating statistics on slow running query

2014-11-10 Thread desmodemone
2014-11-10 18:43 GMT+01:00 Eric Ramirez : > > Hi, > I have created a sample database with test data to help benchmark our > application. The database has ten million records, and is running on a > dedicated server(postgres 9.3) with 8GB of RAM. Our queries are pretty > slow with this amount of da

[PERFORM] updating statistics on slow running query

2014-11-10 Thread Eric Ramirez
Hi, I have created a sample database with test data to help benchmark our application. The database has ten million records, and is running on a dedicated server(postgres 9.3) with 8GB of RAM. Our queries are pretty slow with this amount of data and is my job to get them to run to at acceptable sp