Re: [PERFORM] Performance problems on a fairly big table with two

2003-09-05 Thread Richard Huxton
On Friday 05 September 2003 16:36, Rasmus Aveskogh wrote: > Richard, > > Thanks a lot! You were right - the query parser "misunderstood" > now() - '1 day'::interval and only used one of the indexes (as I already > noticed). > > Actually all I had to do was to cast the result like this: > > (now() -

Re: [PERFORM] Performance problems on a fairly big table with two

2003-09-05 Thread Rasmus Aveskogh
Richard, Thanks a lot! You were right - the query parser "misunderstood" now() - '1 day'::interval and only used one of the indexes (as I already noticed). Actually all I had to do was to cast the result like this: (now() - '1 day'::interval)::date 75s is not between 10ms and 200ms. Thanks ag

Re: [PERFORM] Performance problems on a fairly big table with two key columns.

2003-09-05 Thread Richard Huxton
On Thursday 04 September 2003 23:53, Rasmus Aveskogh wrote: > Hi, > > I have a table that looks like this: > > DATA ID TIME > > |--||--| > > The table holds app. 14M rows now and grows by app. 350k rows a day. > > The ID-column holds about 1500 unique values (integer). > The TIME-