X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 76A0111F607D for ; Wed, 12 Apr 2006 22:19:25 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id OTf8RtWhtPcD for ; Wed, 12 Apr 2006 22:19:25 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by postgresql.org (Postfix) with ESMTP id 4864C11F6B06 for ; Wed, 12 Apr 2006 22:19:21 -0300 (ADT) Received: by zproxy.gmail.com with SMTP id m7so1573762nzf for ; Wed, 12 Apr 2006 18:19:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=uBLYAo2WpOKvqRPpiLDq8VeJtcZucUldhH379c9n3raMYzzDtTeHEDGtpFYa7T/LZ1quW2XvnnUlifzAhW2SdywWkA4QBKMvd1vmdf23yC+m6QLJ+WHKU2khFUoTj87i8/wzcoHX9ZtTDx3OxtCOue5bAaMPQljn20C0cEzt86Y= Received: by 10.36.36.6 with SMTP id j6mr1339631nzj; Wed, 12 Apr 2006 18:19:21 -0700 (PDT) Received: from ?10.1.1.24? ( [203.217.18.65]) by mx.gmail.com with ESMTP id r9sm1182970nza.2006.04.12.18.19.20; Wed, 12 Apr 2006 18:19:21 -0700 (PDT) Message-ID: <443DA715.4060606@gmail.com> Date: Thu, 13 Apr 2006 11:19:17 +1000 From: Chris User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Francisco Reyes CC: Pgsql performance Subject: Re: Inserts optimization? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/284 X-Sequence-Number: 18368 Francisco Reyes wrote: > Doing my first write heavy database. > What settings will help improve inserts? > Only a handfull of connections, but each doing up to 30 inserts/second. > Plan to have 2 to 3 clients which most of the time will not run at the > same time, but ocasionaly it's possible two of them may bump into each > other. If you can, use copy instead: http://www.postgresql.org/docs/8.1/interactive/sql-copy.html MUCH quicker (and don't worry about using multiple clients). -- Postgresql & php tutorials http://www.designmagick.com/