X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6C01247624C for ; Tue, 4 Mar 2003 13:38:26 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 65190-05 for ; Tue, 4 Mar 2003 13:38:21 -0500 (EST) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by postgresql.org (Postfix) with ESMTP id 9C2A747623F for ; Tue, 4 Mar 2003 13:38:21 -0500 (EST) Received: from stark.dyndns.tv (H162.C233.tor.velocet.net [216.138.233.162]) by sabre.velocet.net (Postfix) with ESMTP id 9A4501380CD; Tue, 4 Mar 2003 13:38:16 -0500 (EST) Received: from localhost ([127.0.0.1] helo=stark.dyndns.tv ident=foobar) by stark.dyndns.tv with smtp (Exim 3.36 #1 (Debian)) id 18qHIt-0008NX-00; Tue, 04 Mar 2003 13:38:15 -0500 To: Oleg Bartunov Cc: Greg Stark , Achilleus Mantzios , pgsql-sql Subject: Re: Gist indexes on int arrays References: <87smu3kv7d.fsf@stark.dyndns.tv> <87k7ffkr3o.fsf@stark.dyndns.tv> In-Reply-To: From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 04 Mar 2003 13:38:15 -0500 Message-ID: <87znobj7u0.fsf@stark.dyndns.tv> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200303/127 X-Sequence-Number: 12167 Oleg Bartunov writes: > > db=# CREATE INDEX cache_gist_idx on cache using gist ( foo_id , attribute_set gist__int_ops); > what's the time to create gist indices separately ? I suppose 15m is the time > to create btree index on *single* column ? Unfortunately I can't run timing tests on it without invalidating whatever timing results I get for the current index build which is still running. postgres 30176 93.7 21.7 68964 56096 ? R 11:08 133:39 postgres: postgres slo [local] CREATE INDEX 15m was what i remember as the time to build a unique (non-gist) btree index on (foo_id,bar_id) where foo_id is the same integer column as the leading column in the gist index, and bar_id is another integer column. There are 1,161,435 records, with 384 distinct values of foo_id. The number of records per value of foo_id ranges from 1 to 11,474. The annoying thing here is that 99% of the attribute_set columns will have exactly one value in them. All this work is for the 1% that can have multiple values. -- greg