Re: Slow first query

From: Richard Huxton <dev(at)archonet(dot)com>
To: Rob Brenart <postgresql(at)oculardata(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow first query
Date: 2005-07-19 12:16:32
Message-ID: 42DCEF20.6090607@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rob Brenart wrote:
> I'm running postgresql 8.0 under WindowsXP for a development box (the
> production server isn't up yet, and will be linux, so I don't know that
> the problem will travel)...
>
> Using a PHP connection to it for a simple web app, if I leave the app
> alone for a bit (about 20 seconds I'd say) and do something that
> requires a query the next page load is slow, not 20 seconds slow, but
> 3-5 seconds.... but as long as I stay active the page reloads are
> instantaneous.
>
> Is there anything I can do about this, or should I just wait to see how
> it performs on my production server before I worry too much?

Since you don't say what's causing it, difficult to say what the problem
is. Might it just be caching, does your development box have a lot of
memory free to cache disk blocks?

Otherwise, it could be almost anything. You'll have to run some
timing/traces on the various elements of your setup (php/webserver/pg).

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ilja Golshtein 2005-07-19 12:19:58 Re: Old question - failed to find conversion function from "unknown"
Previous Message Richard Huxton 2005-07-19 11:03:35 Re: Old question - failed to find conversion function from