X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EB906D1CAD9 for ; Thu, 5 Feb 2004 12:15:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48809-07 for ; Thu, 5 Feb 2004 08:15:09 -0400 (AST) Received: from mailserv.mobilecohesion.com (picard.mobilecohesion.com [80.4.157.11]) by svr1.postgresql.org (Postfix) with ESMTP id 54A7FD1BCA7 for ; Thu, 5 Feb 2004 08:15:00 -0400 (AST) Received: from cpc4-blfs2-3-0-cust48.blfs.cable.ntl.com ([81.110.249.48] helo=pestilence) by mailserv.mobilecohesion.com with asmtp (Exim 4.10) id 1AoiPL-0004MK-00 for pgsql-performance@postgresql.org; Thu, 05 Feb 2004 12:14:59 +0000 From: "Damien Dougan" To: Subject: Index Performance Help Date: Thu, 5 Feb 2004 12:13:40 -0000 Organization: MobileCohesion Message-ID: <004b01c3ebe1$7e0c9a70$7701a8c0@pestilence> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/72 X-Sequence-Number: 5596 Hi All, I've been seeing very slow read performance on a database of 1 million indexed subscribers, which I believe is nothing to do with the data itself, but delays on processing the index. If I make a random jump into the index (say X), it can take about 50ms to read the subscriber. If I then make a "close by" lookup (say X+10), it takes only about 0.5ms to read the subscriber. Making another lookup to a "far away" (say X+1000), it again takes about 50ms to read.