X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9AC37D1B502 for ; Mon, 8 Sep 2003 10:03:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 07064-07 for ; Mon, 8 Sep 2003 07:02:48 -0300 (ADT) Received: from gsy_sbs_1.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 3EB39D1B505 for ; Mon, 8 Sep 2003 07:02:44 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by gsy_sbs_1.cisx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id RZJ5Y4DB; Mon, 8 Sep 2003 10:53:40 +0100 Message-ID: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <200309081032.51586.vendi@cosmoline.com> Subject: Re: Are 50 million rows a problem for postgres ? Date: Mon, 8 Sep 2003 11:03:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/128 X-Sequence-Number: 10216 > 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.