Large table performance

Поиск
Список
Период
Сортировка
От Mark Dobbrow
Тема Large table performance
Дата
Msg-id 376735.48483.qm@web35309.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Large table performance  (Dave Cramer <pg@fastcrypt.com>)
Re: Large table performance  ("Dave Dutcher" <dave@tridecap.com>)
Re: Large table performance  ("Luke Lonergan" <llonergan@greenplum.com>)
Re: Large table performance  ("Luke Lonergan" <llonergan@greenplum.com>)
Список pgsql-performance
Hello -

I have a fairly large table (3 million records), and am fetching 10,000 non-contigous records doing a simple select on an indexed column ie

select grades from large_table where teacher_id = X

This is a test database, so the number of records is always 10,000 and i have 300 different teacher ids.

The problem is, sometimes fetching un-cached records takes 0.5 secs and sometimes (more often) is takes more like 10.0 seconds

(fetching the same records for a given teacher_id a second time takes about 0.25 secs)

Has anyone seen similar behavior or know what the solution might be?

any help much appreciated,
Mark



ps. My shared_buffers is set at 5000 (kernal max), and work_mem=8192


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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: [HACKERS] table partioning performance
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Large table performance