Re: Slow SELECT on three or more clients

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Slow SELECT on three or more clients
Дата
Msg-id b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com
обсуждение исходный текст
Ответ на Slow SELECT on three or more clients  ("AMIR FRANCO D. JOVEN" <amir@digi.ph>)
Список pgsql-performance
On 11/15/06, AMIR FRANCO D. JOVEN <amir@digi.ph> wrote:
> Hi!
>
>  Im new to PostgreSQL.
>
>  My current project uses PostgreSQL 7.3.4.
>
>  the problem is like this:
>
>  I have a table with 94 fields and a select with only one resultset in only
> one client consumes about 0.86 seconds.
>  The client executes three 'select' statements to perform the task which
> consumes 2.58 seconds.
>  With only one client this is acceptable, but the real problem is as i add
> more clients, it goes more and more slower.
>
>  for a single select with one field in one resultset, is 0.86 seconds
> normal?
>
>  I tried vacuuming and reindexing but to no avail.
>  the total record count in that particular table is 456,541.

returning 450k rows in around 1 second is about right for a result set
with one field.  imo, your best bet is to try and break up your table
and reorganize it so you dont have to query the whole thing every
time.  why do you need to return all the rows over and over?

merlin

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

Предыдущее
От: "Gregory S. Williamson"
Дата:
Сообщение: Re: Slow SELECT on three or more clients
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: Slow SELECT on three or more clients