Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4D71DB5E0F1 for ; Mon, 6 Jun 2011 04:42:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 36072-04 for ; Mon, 6 Jun 2011 07:42:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mail.postgresql.org (Postfix) with ESMTP id 6C3BFB5DF83 for ; Mon, 6 Jun 2011 04:42:20 -0300 (ADT) Received: from mail-ew0-f43.google.com ([209.85.215.43]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKTeyE29v5nGAMbOEtF/BE9uoh4ta2b/pN@postini.com; Mon, 06 Jun 2011 00:42:20 PDT Received: by mail-ew0-f43.google.com with SMTP id 20so1774461ewy.2 for ; Mon, 06 Jun 2011 00:42:19 -0700 (PDT) Received: by 10.213.29.66 with SMTP id p2mr816004ebc.35.1307346139445; Mon, 06 Jun 2011 00:42:19 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id b1sm2995598eeg.5.2011.06.06.00.42.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 00:42:18 -0700 (PDT) Message-ID: <4DEC84D7.7040602@enterprisedb.com> Date: Mon, 06 Jun 2011 10:42:15 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.17) Gecko/20110510 Icedove/3.1.10 MIME-Version: 1.0 To: Alexander Korotkov CC: pgsql-hackers Subject: Re: WIP: Fast GiST index build References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/380 X-Sequence-Number: 189093 On 03.06.2011 14:02, Alexander Korotkov wrote: > Hackers, > > WIP patch of fast GiST index build is attached. Code is dirty and comments > are lacking, but it works. Now it is ready for first benchmarks, which > should prove efficiency of selected technique. It's time to compare fast > GiST index build with repeat insert build on large enough datasets (datasets > which don't fit to cache). There are following aims of testing: > 1) Measure acceleration of index build. > 2) Measure change in index quality. > I'm going to do first testing using synthetic datasets. Everybody who have > interesting real-life datasets for testing are welcome. I ran another test with a simple table generated with: CREATE TABLE pointtest (p point); INSERT INTO pointtest SELECT point(random(), random()) FROM generate_series(1,50000000); Generating a gist index with: CREATE INDEX i_pointtest ON pointtest USING gist (p); took about 15 hours without the patch, and 2 hours with it. That's quite dramatic. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com