Re: Scaling 10 million records in PostgreSQL table

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Scaling 10 million records in PostgreSQL table
Дата
Msg-id 50733741.30609@ringerc.id.au
обсуждение исходный текст
Ответ на Scaling 10 million records in PostgreSQL table  (Navaneethan R <nava@gridlex.com>)
Ответы Re: Scaling 10 million records in PostgreSQL table
Список pgsql-performance
On 10/08/2012 11:26 PM, Navaneethan R wrote:
> Hi all,
>
>        I have 10 million records in my postgres table.I am running the database in amazon ec2 medium instance.

EC2 usually means "My I/O performance is terrible" and "medium instance"
means "I don't have enough RAM for caching to make up for my terrible
I/O" at the database sizes you're talking.

Anything that hits most of the database is likely to perform pretty
poorly on something like EC2. It might be worth considering one of the
high memory or high I/O instances, but unfortunately they only come in
"really big and really expensive".

If you already have appropriate indexes and have used `explain analyze`
to verify that the query isn't doing anything slow and expensive, it's
possible the easiest way to improve performance is to set up async
replication or log shipping to a local hot standby on real physical
hardware, then do the query there.

--
Craig Ringer



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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Scaling 10 million records in PostgreSQL table
Следующее
От: Craig James
Дата:
Сообщение: Two identical systems, radically different performance