Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJ460-0000q2-Of for pgsql-performance@postgresql.org; Tue, 02 Oct 2012 15:09:16 +0000 Received: from smtp2.peak6.com ([38.98.137.9]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJ45y-00041r-3C for pgsql-performance@postgresql.org; Tue, 02 Oct 2012 15:09:16 +0000 X-AuditID: 0a02cb1e-b7f486d000006aaa-1a-506b02a428d6 Message-ID: <506B0396.4030805@optionshouse.com> Date: Tue, 2 Oct 2012 10:09:10 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Stefan Keller CC: Ivan Voras , Subject: Re: Inserts in 'big' table slowing down the database References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOIsWRmVeSWpSXmKPExsXClcIrpruUKTvAYOMFNosT0/+wWlyfeY7Z 4ugWNgdmjxmf5rN47Jx1l93jwr5p7AHMUQ2MNol5efkliSWpCimpxcm2Sv4FJZn5ecUe+aXF qQoumcXJOYmZualFSgqZKbZK5koKBTmJyam5qXkltkqJBQWpeSlKdlwKGMAGqCwzTyE1Lzk/ JTMv3VbJM9hf18LC1FLXUMkuHhkkdLJkfD86i6VgF1vFm8VNjA2ME1m7GDk5JARMJPZ07mWD sMUkLtxbD2bzCuhLzL5/lRnEZhFQkTjWOIkJxGYT0JWY1L8CrEYIKN539gZYnF9AWGLfhyaw elGBEIkPj/pZIeYISpyc+YQFxBYRUJPYNbeTEcRmFnCXmHf3AXsXIweHMJB9caMexMhNjBLN c0NBbE6BQIm9a1+wQJRbSCx+c5AdwpaX2P52DjNEvarEiuaJUOcrSPy/8o5pAqPQLCSbZyFp n4WkfQEj8ypG8eKyxOSMTLOC4tySAkO9gtTEbDO9vNSSTYygSGY6LbeDccUFxUOMAhyMSjy8 BYzZAUKsiWXFlbmHGCU4mJVEeK3vZwUI8aYkVlalFuXHF5XmpBYfYjQFBtlEZinR5Hxgkskr iTc0NrQ0tTQxszQ3NjZQEudV6FMKEBJIB6aG7NTUgtQimD4mDk6pBkY5ba7u5IvOWo0Gx342 O6Ze+cwyM5j1X8DbppaLHl8eZN5ZGH5HbercpfGPJl/nq176LOGc4ncBoe5vJv0yJ//z3RPI uLens0mJ/3GXmoV1sIWOXd7V7SZ7nn7adbnJ4HBF+Of5Ve8e9ugpnulyChRyYZhl/ZVp+c2C VeJLheu6lwhvqWR6+k+JpTgj0VCLuag4EQDDLcIF+gIAAA== X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/12 X-Sequence-Number: 47971 On 10/01/2012 07:15 PM, Stefan Keller wrote: > Any ideas? Partitioning? Yes. Make sure you have a good column to partition on. Tables this large are just bad performers in general, and heaven forbid you ever have to perform maintenance on them. We had a table that size, and simply creating an index could take upwards of two hours. If you can't archive any of the table contents, partitioning may be your only solution. If you have an EDB 9.1, you'll also have less problems with the legacy issues people had with planning queries using partitions. Don't go crazy, though. I try to keep it under a couple dozen partitions per table, or under 100M records per partition. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-444-8534 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email