Same stament sometime fast, something slow

Поиск
Список
Период
Сортировка
От Fernando Mertins
Тема Same stament sometime fast, something slow
Дата
Msg-id AANLkTinnMdESL8mycy6P6NWDrYPABLns0_v3Ct9Z-6Zj@mail.gmail.com
обсуждение исходный текст
Ответы Re: Same stament sometime fast, something slow  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-performance
Hi there, this is my first post.

I have a PostgreSQL 8.3.6, compiled by Visual C++ build 1400 running on Windows with virtual machine, 2 GB ram, and configured the postgresql.conf file to log statements duration >= 500 ms.

And I have this query/log entry:
2011-01-03 23:06:29 BRT LOG:  duration: 2843.000 ms  statement: SELECT DESCRICAO FROM CURSO WHERE CODCURSO = 2

My question is, this same query executes many times a day and many times fast/normal, but why in some cases its run slowly? Especialy because the "CODCURSO" column is PK and this table has only 3 registers (tiny table).

Thank you in advance!
Fernando

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Question: BlockSize > 8192 with FusionIO
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Same stament sometime fast, something slow