Re: Big Tables vs. many Tables vs. many Databases

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Big Tables vs. many Tables vs. many Databases
Дата
Msg-id 200402190909.40085.dev@archonet.com
обсуждение исходный текст
Ответ на Big Tables vs. many Tables vs. many Databases  ("Dirk Olbertz" <olbertz.dirk@gmx.de>)
Список pgsql-general
On Thursday 19 February 2004 00:44, Dirk Olbertz wrote:
> Hi there,
>
> I'm currently about to redesign a database which you could compare with a
> database for managing a library. Now this solution will not only manage one
> library, but 100 to 500 of them. Currently, eg. all the data about the
> inventory (books) is held in one table for all the libraries.
>
> Is it useful to spread this to one table for each library, by eg. giving it
> an id as a postfix?
[snip]

Uwe's raised some points about reliability - I'd suggest looking at how you
want to use the data.

You might want to look at multiple databases, but probably not multiple
tables. With multiple databases, you could backup/restore individual client's
data.

On the other hand, if you want to view data across multiple "libraries" then
one large table in one database is useful.

Also think about how you will make changes to the structure of your
database(s) - how much effort will it be to add a column in each case?

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: "Uwe C. Schroeder"
Дата:
Сообщение: Re: Big Tables vs. many Tables vs. many Databases
Следующее
От: Carlos Ojea Castro
Дата:
Сообщение: Re: Connect to PostgreSQL with kylix3