Re: postgresql is slow with larger table even it is in RAM

Поиск
Список
Период
Сортировка
От =?ISO-8859-1?Q?Elvis_Henr=EDquez?=
Тема Re: postgresql is slow with larger table even it is in RAM
Дата
Msg-id 493343bd0803270335i59c2ba65yded0a1c11982b384@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgresql is slow with larger table even it is in RAM  ("sathiya psql" <sathiya.psql@gmail.com>)
Список pgsql-admin

We could notice your processor is an Intel Celeron. They have a small cache, as you can see for yourself in your output.

But, what about postgresql.conf ? How many memory resources are being assigned in your configuration?

If you only have 1.25 GB of RAM and you're creating a tablespace in RAM which holds a table about 0.8 GB in size, and have created indexes in the same tablespace in RAM, you could be getting out of RAM. vmstat says you're not using swap, but if you leave the postgresql process only ~100 MB of RAM, it surely will have a bad performance.

Once the server is up and running, which is the output of free ?

Which tool are you using to retrieve data ? psql is pretty much faster than phpPgAdmin and this one is faster than pgAdmin.

Elvis E. Henríquez A.

On Wed, Mar 26, 2008 at 4:18 AM, sathiya psql <sathiya.psql@gmail.com> wrote:


On Tue, Mar 25, 2008 at 2:11 PM, CZUCZY Gergely <gergely.czuczy@harmless.hu> wrote:
May I ask, do you have any indeces or a primary key on that table?
yes, i have both the index and primary key on a column "id",
and am doing the

SELECT count(id) from TABLE;

this is taking 3 seconds

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

Предыдущее
От: Marc Cousin
Дата:
Сообщение: No other role than public in privileges setup tabs
Следующее
От: Sonia Perez Peña
Дата:
Сообщение: RV: herramienta administracion de Postgre para Linux