X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2DFED9FB1CB for ; Thu, 27 Jul 2006 00:55:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 11098-03 for ; Thu, 27 Jul 2006 00:55:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by postgresql.org (Postfix) with ESMTP id A1BB19FB1C0 for ; Thu, 27 Jul 2006 00:55:50 -0300 (ADT) Received: from 172.16.1.25 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Wed, 26 Jul 2006 23:55:41 -0400 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Jul 2006 23:55:41 -0400 Received: from 12.180.45.140 ([12.180.45.140]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.105]) with Microsoft Exchange Server HTTP-DAV ; Thu, 27 Jul 2006 03:55:40 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Wed, 26 Jul 2006 20:55:38 -0700 Subject: Re: On-disk bitmap index patch From: "Luke Lonergan" To: "Tom Lane" , "Mark Kirkwood" cc: "Josh Berkus" , "Gavin Sherry" , "Jie Zhang" , pgsql-hackers@postgresql.org Message-ID: Thread-Topic: [HACKERS] On-disk bitmap index patch Thread-Index: AcaxMIVTw+bUpB0jEdupjgAWy4o9DA== In-Reply-To: <1593.1153923961@sss.pgh.pa.us> MIME-Version: 1.0 X-OriginalArrivalTime: 27 Jul 2006 03:55:41.0259 (UTC) FILETIME=[874461B0:01C6B130] X-WSS-ID: 68D6E6B70VC158075-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.5 tagged_above=0 required=5 tests=RCVD_NUMERIC_HELO X-Spam-Level: * X-Archive-Number: 200607/1333 X-Sequence-Number: 87188 Tom, On 7/26/06 7:26 AM, "Tom Lane" wrote: > I wonder > whether they oughtn't use 16-bit instead of 8-bit HRL_WORDs We tried variations from 8-bit to 32-bit and came to the conclusion that 8-bit was a better match for the more general case. For the moment I forget exactly why (maybe Jie or Ayush will recall). It's a #define I believe, so you can play with it to find out. There's a lot more to be done with this - I think we've got some big gains ahead. BTW - lots of excitement here at OSCON about bitmap index, and there's a fellow who is using the current Bizgres version, but wants *higher* cardinality support, so I discussed Jie's thoughts about implementing binning on values, basically combining bit vectors into value bins as the cardinality increases. I am still puzzled why our index creation time increases so dramatically as we approach cardinality 10,000. I know that we found that index page traversal for append began to take a lot of time as we started to increase the number of bitvector pages - we had talked about aggregating the append operations into groups before they were implemented to sequentialize the access. - Luke