Skip site navigation (1) Skip section navigation (2)

timestamp indexing

From: Tobias Brox <tobias(at)nordicbet(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: timestamp indexing
Date: 2005-05-30 09:19:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
We have a production database with transaction-style data, in most of the
tables we have a timestamp attribute "created" telling the creation time of
the table row.  Naturally, this attribute is always increasing.

By now we are hitting the limit where the table data does not fit in caches
anymore.  We have a report section where there are constantly requests for
things like "sum up all transactions for the last two weeks", and those
requests seem to do a full table scan, even though only the last parts of
the table is needed - so by now those reports have started to cause lots of

Is there any way to avoid this, apart from adding memory linearly with
database growth, make adjunct tables for historical rows, or build a
separate data warehousing system?  There must be some simpler solutions,

Tobias Brox, Beijing


pgsql-performance by date

Next:From: Eric LauzonDate: 2005-05-30 13:43:12
Subject: Postgresql and xeon.
Previous:From: Neil ConwayDate: 2005-05-30 04:02:44
Subject: Re: OID vs overall system performances on high load

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group