Re: Large number of tables slow insert

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Large number of tables slow insert
Дата
Msg-id dcc563d10808231725q13556r435d68939b0e9b71@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Large number of tables slow insert  (tls.wydd@free.fr)
Список pgsql-performance
On Sat, Aug 23, 2008 at 6:09 PM,  <tls.wydd@free.fr> wrote:
> On this smaller test, the indexes are over the allowed memory size (I've got
> over 400.000 readings per sensor) so they are mostly written in disk.

They're always written to disk.  Just sometimes they're not read.
Note that the OS caches files as well as pgsql, and I'm not sure what
you mean by "allowed memory size" but only the shared_buffers would
hold onto something after it's been operated on.  work_mem won't.

> And on the
> big test, I had small indexes (< page_size) because I only had about 5-10 rows
> per table, thus it was 3000*8kb = 24mb which is lower than the allowed memory.

> btw which is the conf parameter that contains the previously read indexes ?

Not sure what you're asking.  It's all automatic as far as OS and
postgresql caching goes.

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

Предыдущее
От: tls.wydd@free.fr
Дата:
Сообщение: Re: Large number of tables slow insert
Следующее
От: "Loic Petit"
Дата:
Сообщение: Re: Large number of tables slow insert