pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nickolay <nitro@zhukcity.ru>
To: pgsql-performance@postgresql.org
Subject: PG optimization question
Date: Sat, 09 Jan 2010 13:32:39 +0300
Message-ID: <4B485B47.1000205@zhukcity.ru> (raw)

Hi 2 all,

Here is my typical configuration: 1(2) GB of RAM, HP ML 350(150) series 
server, SATA raid, Linux.

I have 1 big table (called "archive") which contains short text messages 
with a plenty of additional service info.
Currently this table contains more than 4M rows for a period of 4,5 
months, i.e. each row has average size of 1K.

I'm going to make our application work with partitions of this table 
instead of one large table. The primary reason is that eventually we'd 
need to remove old rows and it would be pretty hard with one table 
because of blocking (and rows are being added constantly).

1. What would be your recommendations on how to partition this table (by 
months, years or quarters)?
2. What is recommended PG settings for such configuration? Would it be 
ok to set shared_buffers to let's say 512M (if RAM is 1Gig may be 
shared_buffers is to be 400M?)? What other settings would you recommend?

Thanks in advance,
Nick.



view thread (14+ messages)  latest in thread

Message-ID: <4B485B47.1000205@zhukcity.ru>
Permalink:  ../4B485B47.1000205@zhukcity.ru/
Also on:    postgresql.org/message-id/4B485B47.1000205@zhukcity.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: nitro@zhukcity.ru
  Subject: Re: PG optimization question
  In-Reply-To: <4B485B47.1000205@zhukcity.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox