Re: Simple query takes a long time on win2K - Mailing list pgsql-general

From Magnus Hagander
Subject Re: Simple query takes a long time on win2K
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7138@algol.sollentuna.se
Whole thread Raw
In response to Simple query takes a long time on win2K  ("A. Mous" <a.mous@shaw.ca>)
Responses Re: Simple query takes a long time on win2K  ("A. Mous" <a.mous@shaw.ca>)
List pgsql-general
> You're right, the Celeron 2400 is much faster than the 200,
> but not that much more than the 1800, and all win2k
> (professional) machines are serving up the records in exactly
> the same amount of time.
>
> Across a network (issuing the query from the 2400 celeron win
> XP to the 233 PII win2k) the records are served up in about
> 300ms!  Much faster than simply performing the exact same
> query locally on the PII.
>
> Now I'm really confused!
>
> Any ideas?

Yes, I suspect it has to do with context switching. When you run it
remotely the server can do it's job without much interference. When you
run the client on the same machine, it keeps flipping back and forth
between the server and the client.

You might get better performance on Win2k server, as that would increase
the timeslice for each piece of work. Also, try tweaking the
"Performance boost for foreground application" on the performance tab of
the system properties.

//Magnus

pgsql-general by date:

Previous
From: David Gagnon
Date:
Subject: Re: I'm OWNER of the db but I get `permission denied` when
Next
From: "Magnus Hagander"
Date:
Subject: Re: Simple query takes a long time on win2K