Re: index performance on large tables with update and insert

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: index performance on large tables with update and insert
Дата
Msg-id 20080523123517.6305fbde@mha-laptop.hagander.net
обсуждение исходный текст
Ответ на index performance on large tables with update and insert  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-performance
Jessica Richard wrote:
> I have a large table with about 2 million rows and it will keep
> growing...
>
> I need to do update/inserts, and select as well.
>
> An index will speed up the select, but it will slow down the updates.
>
> Are all Postgres indexes ordered? i.e., with every update, the index
> pages will have to be physically reordered?
>
> Does Postgres have any kind of non-ordered indexes (like Syabse's
> non-clustered index)?

All PostgreSQL indexes are like the non-clustered ones in Sybase or SQL
Server.


> What is the common way to take care of the performance issue when you
> have to do both update and select on the same large table?

Create the indexes you actually need to make the selects and updates
fast, just make sure you don't create any unnecessary ones. Usually,
your UPDATEs will also require indexes - only the INSERTs actually are
losing.

//Magnus

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: IBM ServRAID-MR10M / LSI1078ROC advice
Следующее
От: Andrzej Zawadzki
Дата:
Сообщение: Re: Quad Xeon or Quad Opteron?