Re: Simple query takes a long time on win2K

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Simple query takes a long time on win2K
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7138@algol.sollentuna.se
обсуждение исходный текст
Ответ на Simple query takes a long time on win2K  ("A. Mous" <a.mous@shaw.ca>)
Ответы Re: Simple query takes a long time on win2K  ("A. Mous" <a.mous@shaw.ca>)
Список 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 по дате отправления:

Предыдущее
От: David Gagnon
Дата:
Сообщение: Re: I'm OWNER of the db but I get `permission denied` when
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Simple query takes a long time on win2K