Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Uj2-0004X7-Fc for pgsql-performance@postgresql.org; Mon, 03 Sep 2012 11:21:52 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Uiy-0001M4-76 for pgsql-performance@postgresql.org; Mon, 03 Sep 2012 11:21:51 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T8Uiy-0008E8-2o for pgsql-performance@postgresql.org; Mon, 03 Sep 2012 13:21:48 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Sep 2012 13:21:48 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Sep 2012 13:21:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Ivan Voras Subject: Re: Inserts in 'big' table slowing down the database Date: Mon, 03 Sep 2012 13:21:36 +0200 Lines: 52 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig22E601B5B523F14BFE4D77AE" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120213 Thunderbird/10.0 In-Reply-To: X-Enigmail-Version: 1.3.5 X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201209/8 X-Sequence-Number: 47754 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig22E601B5B523F14BFE4D77AE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/09/2012 13:03, Stefan Keller wrote: > Hi, >=20 > I'm having performance issues with a simple table containing 'Nodes' > (points) from OpenStreetMap: >=20 > CREATE TABLE nodes ( > id bigint PRIMARY KEY, > user_name text NOT NULL, > tstamp timestamp without time zone NOT NULL, > geom GEOMETRY(POINT, 4326) > ); > CREATE INDEX idx_nodes_geom ON nodes USING gist (geom); >=20 > The number of rows grows steadily and soon reaches one billion > (1'000'000'000), therefore the bigint id. > Now, hourly inserts (update and deletes) are slowing down the database > (PostgreSQL 9.1) constantly. > Before I'm looking at non-durable settings [1] I'd like to know what > choices I have to tune it while keeping the database productive: > cluster index? partition table? use tablespaces? reduce physical block = size? You need to describe in detail what does "slowing down" mean in your case. Do the disk drives somehow do more operations per transaction? Does the database use more CPU cycles? Is there swapping? What is the expected (previous) performance? At a guess, it is very unlikely that using non-durable settings will help you here. --------------enig22E601B5B523F14BFE4D77AE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlBEksAACgkQ/QjVBj3/HSzXEgCffWdLp9ushy8FdMTlOy65BhMU p1MAn0tn+0+27id6E3LrB9Z5u5sWC4BC =0kRT -----END PGP SIGNATURE----- --------------enig22E601B5B523F14BFE4D77AE--