pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Donald Fraser <demolish@cwgsy.net>
To: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: Are 50 million rows a problem for postgres ?
Date: Mon, 8 Sep 2003 11:03:12 +0100
Message-ID: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> (raw)
References: <200309081032.51586.vendi@cosmoline.com>
	<Pine.LNX.4.50.0309081014440.22692-100000@short.lancs.ac.uk>


> On Mon, 8 Sep 2003, Vasilis Ventirozos wrote:
>
> > Hi all, i work in a telco and i have huge ammount of data, (50 million)
> > but i see a lack of performance at huge tables with postgres,
> > are 50 million rows the "limit" of postgres ? (with a good performance)
> > i am waiting for 2004 2 billion records so i have to do something.
> > Does anyone have a huge database to ask him some issues ?
> >
> > my hardware is good ,my indexes are good plz dont answer me something like
use
> > vacuum  :)
>

I did some performance testing back on PostgreSQL version 7.2 on a table of
350,000 records.
My analysis at the time was that to access random records, performance
deteriorated the further away the records that you were accessing were from the
beginning of the index. For example using a query that had say OFFSET 250000
would cause large delays. On a text index these delays were in the order of 60
seconds! Which was unacceptable for the application I was developing.
To overcome this problem I had to do away with queries that used OFFSET and
developed queries that accessed the data relative to previous records I had
accessed. The only draw back was that I had to make the indexes unique by
appending a unique id column as the last column in the index. I now have no
problem scanning a table in access of 1 million records in small chunks at a
time.

Anyway without seeing what sort of query you are having problems with nobody on
these email lists will be able to fully help you.
Minimum we need to see an SQL statement, and the results of  EXPLAIN.

Regards
Donald Fraser.





view thread (17+ messages)  latest in thread

Message-ID: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION>
Permalink:  ../001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION/
Also on:    postgresql.org/message-id/001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: demolish@cwgsy.net
  Subject: Re: Are 50 million rows a problem for postgres ?
  In-Reply-To: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION>
  References: <200309081032.51586.vendi@cosmoline.com> <Pine.LNX.4.50.0309081014440.22692-100000@short.lancs.ac.uk> <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox