От: Simon Riggs
Тема: Re: very large table
Дата: ,
Msg-id: 1117616239.3844.898.camel@localhost.localdomain
(см: обсуждение, исходный текст)
Ответ на: very large table  ("Praveen Raja")
Список: pgsql-performance

On Tue, 2005-05-31 at 11:37 +0200, Praveen Raja wrote:
> I’m trying to move an existing solution from MySQL to PostgreSQL. As
> it is now the solution has 4 tables where data in inserted by an
> application. At regular intervals (10min) data from these tables is
> consolidated and moved to another table for reporting purposes. There
> exist many instances of these reporting tables and in total they are
> expected to hold about 500 million rows. There are about 200 of these
> reporting tables at the moment with data split among them. When a
> request comes in all these tables are searched.

> While moving to PostgreSQL is it a good idea to move from using
> multiple tables to one table for so many rows?

No. All of the same reasoning applies.

Try to keep each table small enough to fit easily in RAM.

Make sure you specify WITHOUT OIDS on the main data tables.

Best Regards, Simon Riggs

В списке pgsql-performance по дате сообщения:

От: Tom Lane
Сообщение: Re: How to avoid database bloat
От: "Keith Worthington"
Сообщение: Moving pg_xlog