pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Cigar <jcigar@ulb.ac.be>
To: pgsql-performance@postgresql.org
Subject: Re: Scaling 10 million records in PostgreSQL table
Date: Mon, 08 Oct 2012 21:52:29 +0200
Message-ID: <50732EFD.80608@ulb.ac.be> (raw)
In-Reply-To: <b2d0ada9-f13a-4269-b378-1ceaf2451190@googlegroups.com>
References: <b2d0ada9-f13a-4269-b378-1ceaf2451190@googlegroups.com>

On 10/08/2012 17:26, Navaneethan R wrote:
> Hi all,

Hello,

>        I have 10 million records in my postgres table.I am running the database in amazon ec2 medium instance. I need to access the 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;

please show us an EXPLAIN ANALYZE of the query

> 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?

missing index, wrong configuration, ...
please also note that, generally, all those "cloud stuff" have generally 
very poor I/O performance ..

>
>





view thread (10+ messages)  latest in thread

Message-ID: <50732EFD.80608@ulb.ac.be>
Permalink:  ../50732EFD.80608@ulb.ac.be/
Also on:    postgresql.org/message-id/50732EFD.80608@ulb.ac.be

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jcigar@ulb.ac.be
  Subject: Re: Scaling 10 million records in PostgreSQL table
  In-Reply-To: <50732EFD.80608@ulb.ac.be>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox