Re: Slow query performance on large table - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow query performance on large table
Date
Msg-id 25725.1046798426@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow query performance on large table  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-performance
Robert Treat <xzilla@users.sourceforge.net> writes:
> Maybe it's just me, but I get the feeling you need to work some regular
> reindexing into your maintenance schedule.

Or at least, more vacuuming...

> Given your query is using
> between, I don't think it would use the index on the time field anyway
> (and explain analyze seems to be supporting this). Rewrite it so that
> you have a and time > foo and time < bar and I think you'll see a
> difference.

No, you won't, because that's exactly what BETWEEN is.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Paul McKay"
Date:
Subject: Re: Slow query performance on large table
Next
From: Tomasz Myrta
Date:
Subject: Re: Slow query performance on large table