Scaling 10 million records in PostgreSQL table

Поиск
Список
Период
Сортировка
От Navaneethan R
Тема Scaling 10 million records in PostgreSQL table
Дата
Msg-id b2d0ada9-f13a-4269-b378-1ceaf2451190@googlegroups.com
обсуждение исходный текст
Ответы Re: Scaling 10 million records in PostgreSQL table  (Merlin Moncure <mmoncure@gmail.com>)
Re: Scaling 10 million records in PostgreSQL table  (Julien Cigar <jcigar@ulb.ac.be>)
Re: Scaling 10 million records in PostgreSQL table  (Larry Rosenman <ler@lerctr.org>)
Re: Scaling 10 million records in PostgreSQL table  (Steve Crawford <scrawford@pinpointresearch.com>)
Re: Scaling 10 million records in PostgreSQL table  (Craig Ringer <ringerc@ringerc.id.au>)
Список pgsql-performance
Hi all,

      I have 10 million records in my postgres table.I am running the database in amazon ec2 medium instance. I need to
accessthe last week data from the table. 
It takes huge time to process the simple query.So, i throws time out exception error.

query is :
     select count(*) from dealer_vehicle_details where modified_on between '2012-10-01' and '2012-10-08' and
dealer_id=270001;

After a lot of time it responds 1184 as count

what are the ways i have to follow to increase the performance of this query?

The insertion also going parallel since the daily realtime updation.

what could be the reason exactly for this lacking performace?


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

Предыдущее
От: Andrzej Zawadzki
Дата:
Сообщение: Re: Strange behavior after upgrade from 9.0 to 9.2
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Scaling 10 million records in PostgreSQL table