Re: How to improve insert speed with index on text column

Поиск
Список
Период
Сортировка
От Rosser Schwarz
Тема Re: How to improve insert speed with index on text column
Дата
Msg-id CAFnxYwi80kvcC4zhjPT5EX6r+-2EfHYZG4XrV1-YnK9=4bdF7g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to improve insert speed with index on text column  (Saurabh <saurabh.b85@gmail.com>)
Ответы Re: How to improve insert speed with index on text column  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-performance
On Mon, Jan 30, 2012 at 9:46 AM, Saurabh <saurabh.b85@gmail.com> wrote:
> I can not create the index after insertion because user can
> search the data as well while insertion.

Remember, DDL is transactional in PostgreSQL.  In principle, you
should be able to drop the index, do your inserts, and re-create the
index without affecting concurrent users, if you do all of that inside
an explicit transaction.  Doing the inserts inside a transaction may
speed them up, as well.

rls

--
:wq

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: How to improve insert speed with index on text column
Следующее
От: Claudio Freire
Дата:
Сообщение: Re: How to improve insert speed with index on text column