Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E390AB5DBE7 for ; Mon, 23 May 2011 16:08:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22333-02 for ; Mon, 23 May 2011 19:08:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 8BAB1B5DBDD for ; Mon, 23 May 2011 16:08:16 -0300 (ADT) Received: by gyd10 with SMTP id 10so2242701gyd.19 for ; Mon, 23 May 2011 12:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3dPoaGp+OSrs55LJQ2g+L6S8DiFUWAPiLMrDJRMoKHg=; b=D3AUWei5oHj8qXiPpNtlH/3vXuqSGtWes4xsqnOEd35Ht/SD3KIqgcWakSWbGxAlVR eDmbIvURQHN9keGwKkLWSRc9pI5DNIK1SpLk2o6nks/tE7i2vTkV3FPk9xQOAnAzUr9B DOILaVBJ6Kcln6zm1VdTOsxQmHopuJJIlcu5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cq2cT4/B9187l3K+LI6UD9p20j8R2krqd/XYoI5SME3xbiRG4kwr357/6JYI3uDry9 nTPIdVH+G77hNEmKm49EIj2bElLXuIHQPoflrFCwojRVWkCQGM/K27/kyfH/moNp1KuI 0LMqLjuGJvVjorIJbCx93mMNyQJ/BGEjPsbEM= MIME-Version: 1.0 Received: by 10.236.192.162 with SMTP id i22mr3531119yhn.139.1306177696299; Mon, 23 May 2011 12:08:16 -0700 (PDT) Received: by 10.236.105.180 with HTTP; Mon, 23 May 2011 12:08:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 May 2011 15:08:16 -0400 Message-ID: Subject: Re: Performance degradation of inserts when database size grows From: Robert Haas To: Andrey Vorobiev Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/310 X-Sequence-Number: 43819 On Tue, May 17, 2011 at 8:45 AM, Andrey Vorobiev wrote: > 1. How does database size affect insert performance? Well, if your database gets bigger, then your indexes will become deeper, requiring more time to update. But I'm not sure that's your problem here. > 2. Why does number of written buffers increase when database size grows? It normally doesn't. > 3. How can I further analyze this problem? Are you actually inserting more user data into these tables, so that they have more and more rows as time goes by, or are the data files getting larger out of proportion to the amount of useful data in them? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company