Same stament sometime fast, something slow

From: Fernando Mertins <fernando(dot)mertins(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Same stament sometime fast, something slow
Date: 2011-01-04 18:03:03
Message-ID: AANLkTinnMdESL8mycy6P6NWDrYPABLns0_v3Ct9Z-6Zj@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2011-01-04 18:12:45 Re: Same stament sometime fast, something slow
Previous Message Merlin Moncure 2011-01-04 16:48:59 Re: Question: BlockSize > 8192 with FusionIO