Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0F0202E0383 for ; Mon, 7 Jan 2008 18:17:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 31273-03 for ; Mon, 7 Jan 2008 18:17:18 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by postgresql.org (Postfix) with ESMTP id 2E45D2E0078 for ; Mon, 7 Jan 2008 18:17:21 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so13160367waf.5 for ; Mon, 07 Jan 2008 14:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=HAeJbt1UkQkz7neUHpZdK6HTMZHCJSBVg/UQAvPl+xM=; b=hvtLBwN97iB28h163Puk8K7PtQoDXDSrd1loBEW9j3dEPSw2o+hEgZigYgz9wNqiqg5OCY2vSSZFZ/Se6fc65nWvmijTAW4jmG2nO5jYVITLTVvRCUsZrKqKu2p68G6eBToOO+A1AAk/ETKLepbEnS93YHgBi3LCyih4O8prkh0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pkeoCCD0Rfy641ulRKKhqaY5CLR+WbSnG1gNnu3cID1R9M0xIxaNCHD+Fnr0rVmsGSfR1Hc53JGCgbjxMRt0ETCjhsb/+Nc7OYTk8mk6azm732FhZT4f6A7ziohHoOStQhnwHR1GeRb2k5HjTlbCfpUR9fCpLCstq6SXm9OCsKw= Received: by 10.114.200.2 with SMTP id x2mr569334waf.19.1199744239514; Mon, 07 Jan 2008 14:17:19 -0800 (PST) Received: by 10.114.131.4 with HTTP; Mon, 7 Jan 2008 14:17:19 -0800 (PST) Message-ID: Date: Mon, 7 Jan 2008 16:17:19 -0600 From: "Scott Marlowe" To: "Sergei Shelukhin" Subject: Re: concurrent inserts into two separate tables are very slow Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/19 X-Sequence-Number: 28258 On Jan 5, 2008 9:00 PM, Sergei Shelukhin wrote: > Hi. Running postgres 8.2 on debian. > I've noticed that concurrent inserts (archiving) of large batches data > into two completely unrelated tables are many times slower than the > same inserts done in sequence. > Is there any way to speed them up apart from buying faster HDs/ > changing RAID configuration? What method are you using to load these data? Got a short example that illustrates what you're doing?