Re: Inserts in 'big' table slowing down the database
| От | Shaun Thomas |
|---|---|
| Тема | Re: Inserts in 'big' table slowing down the database |
| Дата | |
| Msg-id | 506B0396.4030805@optionshouse.com обсуждение исходный текст |
| Ответ на | Re: Inserts in 'big' table slowing down the database (Stefan Keller <sfkeller@gmail.com>) |
| Список | pgsql-performance |
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
В списке pgsql-performance по дате отправления: