Smaller multiple tables or one large table?

Поиск
Список
Период
Сортировка
От Benedict Holland
Тема Smaller multiple tables or one large table?
Дата
Msg-id CAD+mzozQeOF8c1nV46Wu1j=HPstvJpZwmGYMkH5sDSR38oF=4Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Smaller multiple tables or one large table?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Hi All,

I am on postgres 9.0. I don't know the answer to what should be a fairly straight forward question. I have several static tables which are very large (around the order of 14 million rows and about 10GB). They are all linked together through foreign keys and indexed on rows which are queried and used most often. While they are more or less static, update operations do occur. This is not on a super fast computer. It has 2 cores with 8gb of ram so I am not expecting queries against them to be very fast but I am wondering in a structural sense if I should be dividing up the tables into 1 million row tables through constraints and a view. The potential speedup I could see being quite large where postgresql would split off all of the queries into n table chucks running on k cores and then aggregate all of the data for display or operation. Is there any documentation to make postgesql do this and is it worth it?

Also, is there a benefit to have one large table or many small tables as far indexes go?

Thanks,
~Ben

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Get RULE condition and commands
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Smaller multiple tables or one large table?