Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2C79F64FD30 for ; Sat, 23 Aug 2008 22:37:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10332-02 for ; Sat, 23 Aug 2008 22:37:36 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by postgresql.org (Postfix) with ESMTP id 3792864FD20 for ; Sat, 23 Aug 2008 22:37:41 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1782171rvf.43 for ; Sat, 23 Aug 2008 18:37:39 -0700 (PDT) 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=YrVot1myX4RQZuantOFxoYgU6ZNzUlN3L62hnkhQA30=; b=ljeksiKunAZVn31iUGJ65v//h5l5fanM9wXv9//y3i9/FDI/fuEjOsMNe0N+4NpsT0 qS4jNA1EG1nuznaY70KNnhmnuOGzqjetgz9j7We3V/9rnGL3EQkPuhZh+l9dIbJPgCN/ k+NVWa4r4w4BbKsUzH+RCqZ7FgFGFjVZyrvhA= 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=sv5ai2k1WGMdjpD0cNhVreuvz3CQc0cOnkFRow6W8xb7IrIatMGxmSR6Ri8S9z7Yyd 66XHzWGCV5E8BHmvNuLDWIT/sos5KxJDs/pzj8PHLYe7RMsLze4t91+ts+F4ZVrpNhm9 xVuDCYN4tRo8wlgsP9LRL4WwdCDYV68muU7H8= Received: by 10.141.179.5 with SMTP id g5mr1352030rvp.237.1219541859543; Sat, 23 Aug 2008 18:37:39 -0700 (PDT) Received: by 10.141.197.1 with HTTP; Sat, 23 Aug 2008 18:37:39 -0700 (PDT) Message-ID: Date: Sat, 23 Aug 2008 19:37:39 -0600 From: "Scott Marlowe" To: "Loic Petit" Subject: Re: Large number of tables slow insert Cc: max@nts.biz.ua, pgsql-performance@postgresql.org In-Reply-To: <1775c5ea0808231831m5275ff08y24ea6ef4c7479cf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1775c5ea0808231831m5275ff08y24ea6ef4c7479cf@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/303 X-Sequence-Number: 31184 On Sat, Aug 23, 2008 at 7:31 PM, Loic Petit wrote: > One sensor (so one table) sends a packet each seconds (for 3000 sensors). > => So we have : 1 insert per second for 3000 tables (and their indexes). > Hopefully there is no update nor delete in it... Wait, I'm confused, I thought you said earlier that for the big test the tables only had a few rows. I'd expect it to be quite a bit bigger if you're inserting into a table once a second for any period.