|
|||||||||||
|
Re: [PERFORM] rtree/gist index taking enormous amount of space in 8.2.3
From: Dolafi, Tom <dolafit(at)janelia.hhmi.org>
Date: Fri Jun 29 2007 - 14:13:23 EDT
In the mean time I've dropped the index which has resulted in overall performance gain on queries against the table, but we have not tested the part of the application which would utilize this index.
-----Original Message-----
"Dolafi, Tom" <dolafit@janelia.hhmi.org> writes:
OK, I was able to reproduce a problem after making the further guess that fmax is usually a little bit greater than fmin. The attached test script generates an rtree index of around 800 pages on 8.1.9, and the index build time is about 6 seconds on my machine. On CVS HEAD, the script generates a gist index of over 30000 pages and the build time is over 60 seconds. Since I'm using random() the numbers move around a bit, but they're consistently awful. I experimented with a few other distributions, such as fmin and fmax chosen independently in the same range, and saw gist build time usually better than rtree and index size only somewhat larger, so this particular distribution apparently fools gist_box_picksplit rather badly. The problem seems nonlinear too --- I had originally tried it with 1 million test rows instead of 100000, and gave up waiting for the index build after more than an hour. Oleg, Teodor, can this be improved? regards, tom lane drop table featureloc;
CREATE TABLE featureloc
insert into featureloc
CREATE OR REPLACE FUNCTION boxrange(integer, integer)
RETURNS box AS
CREATE INDEX binloc_boxrange
vacuum verbose featureloc; ---------------------------(end of broadcast)---------------------------TIP 5: don't forget to increase your free space map settings Received on Fri Jun 29 14:15:39 2007 This archive was generated by hypermail 2.1.8 : Fri Jun 29 2007 - 14:20:06 EDT |
||||||||||
|
|||||||||||