Re: Table Partitioning and Rules

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Table Partitioning and Rules
Дата
Msg-id 200307171238.42550.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Table Partitioning and Rules  ("Girish Bajaj" <gbajaj@tietronix.com>)
Список pgsql-sql
Girish,

> I cant possibly index all the cols in the table.

Why not?

Seriously, what you can do is use query logging to log the columns and
combinations of columns that users most frequently ask for.  Then you can
index for those queries.

Your partitioning scheme assumes that users will be searching on the last name
most of the time, so I'd start with that.

> Im getting a little confused here cause eventually I would want to join in
> this 250 million gigantic table as well.. and that would be a real big
> problem causing loads of sequential scans wouldn't it?

Yes, it would.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: OR vs UNION
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: Table Partitioning and Rules