X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 02A2711F6D03 for ; Thu, 20 Apr 2006 18:28:33 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 1.358 X-Spam-Level: * X-Spam-Status: No, score=1.358 required=5 tests=[AWL=0.105, RCVD_NUMERIC_HELO=1.253] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id BSK14Mt0E7eo for ; Thu, 20 Apr 2006 18:28:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mi8.com (d01gw04.mi8.com [63.240.6.44]) by postgresql.org (Postfix) with ESMTP id 45E7D11F6D02 for ; Thu, 20 Apr 2006 18:28:23 -0300 (ADT) Received: from 172.16.1.25 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Thu, 20 Apr 2006 17:28:02 -0400 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Apr 2006 17:28:01 -0400 Received: from 67.103.45.218 ([67.103.45.218]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.106]) with Microsoft Exchange Server HTTP-DAV ; Thu, 20 Apr 2006 21:28:01 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Thu, 20 Apr 2006 14:27:59 -0700 Subject: Re: Quick Performance Poll From: "Luke Lonergan" To: "Milen Kulev" cc: pgsql-performance@postgresql.org, "bizgres-general" Message-ID: Thread-Topic: [PERFORM] Quick Performance Poll Thread-Index: AcZksvRueuCu96KWTbGitKqFS/QC3wADldji In-Reply-To: <000001c664b2$eef4ba50$0a00a8c0@trivadis.com> MIME-Version: 1.0 X-OriginalArrivalTime: 20 Apr 2006 21:28:01.0691 (UTC) FILETIME=[4D6A36B0:01C664C1] X-WSS-ID: 6859236820C48721056-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/475 X-Sequence-Number: 18559 Milen, On 4/20/06 12:45 PM, "Milen Kulev" wrote: > I (still) haven't tried Bizgres, but what do you mean with "The current > drawback to bitmap index is that it isn't very > maintainable under insert/update, although it is safe for those operations"? Yes. > Do you mean that INSERT/UPDATE operations against bitmap indexes are > imperformant ? > If yes, to what extend ? Insert/Update (but not delete) operations will often invalidate a bitmap index in our current implementation because we have not implemented a maintenance method for them when insertions re-use TIDs. We are in the planning stages for an update that will fix this. > Or you mean that bitmap index corruption is possible when issueing DML > againts BMP indexes? We check for the case of an insertion that causes a re-used TID and issue an error that indicates the index should be removed before the operation is retried. This isn't particularly useful for cases where inserts occur frequently, so the current use-case if for tables where DML should be done in batches after removing the index, then the index re-applied. > I am asking this question because Oracle needed 3 years to solve its BMP index > problems (BMP index corruption/ space > usage explosion when several processes are performing DML operations ). We will be much faster than that! Concurrency will be less than ideal with our maintenance approach initially, but there shouldn't be a corruption problem. > Is Bizgres implementation suffering from this kind child deseases ? Sneeze, cough. - Luke > > > -----Original Message----- > From: pgsql-performance-owner@postgresql.org > [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Luke Lonergan > Sent: Thursday, April 20, 2006 5:03 PM > To: jim@contactbda.com; Simon Dale; pgsql-performance@postgresql.org > Subject: Re: [PERFORM] Quick Performance Poll > > > Jim, > > On 4/20/06 7:40 AM, "Jim Buttafuoco" wrote: > >> First of all this is NOT a single table and yes I am using >> partitioning and the constaint exclusion stuff. the largest set of >> tables is over 2T. I have not had to rebuild the biggest database >> yet, but for a smaller one ~1T the restore takes about 12 hours >> including many indexes on both large and small tables > > You would probably benefit greatly from the new on-disk bitmap index feature > in Bizgres Open Source. It's 8.1 plus the > sort speed improvement and on-disk bitmap index. > > Index creation and sizes for the binary version are in the table below (from a > performance report on bizgres network. > The version in CVS tip on pgfoundry is much faster on index creation as well. > > The current drawback to bitmap index is that it isn't very maintainable under > insert/update, although it is safe for > those operations. For now, you have to drop index, do inserts/updates, > rebuild index. > > We'll have a version that is maintained for insert/update next. > > - Luke > > # Indexed Columns Create Time (seconds) Space Used (MBs) > BITMAP BTREE BITMAP BTREE > 1 L_SHIPMODE 454.8 2217.1 58 1804 > 2 L_QUANTITY 547.2 937.8 117 1804 > 3 L_LINENUMBER 374.5 412.4 59 1285 > 4 L_SHIPMODE, L_QUANTITY 948.7 2933.4 176 2845 > 5 O_ORDERSTATUS 83.5 241.3 5 321 > 6 O_ORDERPRIORITY 108.5 679.1 11 580 > 7 C_MKTSEGMENT 10.9 51.3 1 45 > 8 C_NATIONKEY 8.3 9.3 2 32 > > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > > >