Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIqSy-0001em-6j for pgsql-performance@postgresql.org; Tue, 02 Oct 2012 00:36:04 +0000 Received: from nm14-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.38]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TIqSv-0006lm-I1 for pgsql-performance@postgresql.org; Tue, 02 Oct 2012 00:36:03 +0000 Received: from [98.138.90.49] by nm14.bullet.mail.ne1.yahoo.com with NNFMP; 02 Oct 2012 00:35:59 -0000 Received: from [98.138.89.251] by tm2.bullet.mail.ne1.yahoo.com with NNFMP; 02 Oct 2012 00:35:59 -0000 Received: from [127.0.0.1] by omp1043.mail.ne1.yahoo.com with NNFMP; 02 Oct 2012 00:35:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 103607.67215.bm@omp1043.mail.ne1.yahoo.com Received: (qmail 2882 invoked by uid 60001); 2 Oct 2012 00:35:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1349138158; bh=+5chcsQ7jUydMWWX6tas/Yoswdw6eZ9LbaXk37ddEzg=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ACOXGO9HuuI26PZ98ZtVLVrYMQOh7gYRdMDTCYekROTtmTAmoaVA7fAjnjpfV8WWalid3hbRjDtaTN60AMbGndMkBrY9qkpWl8U2aSswwlXqV0XxUJbSyV1PpTEzv3hlnf+LfogdFQ0QhNcl6hMcsiSDFomVtGQaxqhWFBeMfx8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Z046F4/eCZ4jSf24doFP0oQi/E4l+m85XW9Fg3CBW1bfdMmxbRjZLxIxboCOjba4RXSHRUPp2s0XaK8tKp9Eg3yDOma5pxlet1NDhgqcC/3e+W28FYGMaEXN4stSav+gnfPBWazKzEcsv3uLbXSwc50cVW2r4BO0WgUO8Ysaqtk=; X-YMail-OSG: NFcgsQ8VM1kTXXj0AHhIFRu8KX9TCKRnOcYgX_w_gO3E2MC glvW1RZ4C7yCgFEDttqHy0BawA9bnqczu0do1KVzVchuKih1vyvijtY50xkD AOl.zkwL1ZBSDSZQE3cqEQ5Pt1YJJHZrryahN26dCcyQlPoCBQBb4mQuWUt1 fy9t8eKSnG5a7VfAd6owwY5O1CRn9kZmOHjZ.L9w9V_nCrwDQLyJtYiHoakF hL8kiAU13Ev9w6INLDRE2WxBkHbktNHuskzMcIYbHCdCFWY26IZCpo2btARc hDRPiUunxoqOSo.vLZxzLK6Vdpgahoz.EXnNa5Qb6wzf.PVvIGimzpa.udQb 2kxv1.Xf59knM0p5effnszw9CsKi_oura11KL_ZX4qbzhnPLHTAWDd3wft3s sKhUjvsyRzQdrrq3IXxzAK.4U9JLUwoAcUZnMRYijLh6w5katal3svTZoH8C 5rIuaZ1HMqKQBTy4NmD6sj94QdidmPEj2D8SZysn5QSECJStFo3YePSqbmQ0 72Io6WXw66ztLrwRGrOfMNovsS_M.MXpD2ytN0.VdghadwWQwDoQCkvNPuOA J7zIla4KXhw-- Received: from [199.9.251.45] by web125905.mail.ne1.yahoo.com via HTTP; Mon, 01 Oct 2012 17:35:58 PDT X-Mailer: YahooMailWebService/0.8.122.442 References: Message-ID: <1349138158.88943.YahooMailNeo@web125905.mail.ne1.yahoo.com> Date: Mon, 1 Oct 2012 17:35:58 -0700 (PDT) From: Greg Williamson Reply-To: Greg Williamson Subject: Re: Inserts in 'big' table slowing down the database To: Stefan Keller , Ivan Voras Cc: "pgsql-performance@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201210/5 X-Sequence-Number: 47964 Stefan --=0A=0A=0A----- Original Message -----=0A> From: Stefan Keller =0A> To: Ivan Voras =0A> Cc: pgsql-perf= ormance@postgresql.org=0A> Sent: Monday, October 1, 2012 5:15 PM=0A> Subjec= t: Re: [PERFORM] Inserts in 'big' table slowing down the database=0A> =0A> = Sorry for the delay. I had to sort out the problem (among other things).=0A= > =0A> It's mainly about swapping.=0A> =0A> The table nodes contains about = 2^31 entries and occupies about 80GB on=0A> disk space plus index.=0A> If o= ne would store the geom values in a big array (where id is the=0A> array in= dex) it would only make up about 16GB, which means that the=0A> ids are den= se (with few deletes).=0A> Then updates come in every hour as bulk insert s= tatements with entries=0A> having ids in sorted manner.=0A> Now PG becomes = slower and slower!=0A> CLUSTER could help - but obviously this operation ne= eds a table lock.=0A> And if this operation takes longer than an hour, it d= elays the next=0A> update.=0A> =0A> Any ideas? Partitioning?=0A=0A=0Apg_reo= rg if you have the space might be useful in doing a cluster-like action:=0A= =A0=0A=0AHaven't followed the thread= so I hope this isn't redundant.=0A=0APartitioning might work if you can cr= eate clusters that are bigger than 1 hour -- too many partitions doesn't he= lp.=0A=0AGreg Williamson=0A