pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Kido Kouassi <jjkido@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Read performance on Large Table
Date: Thu, 21 May 2015 09:09:26 -0600
Message-ID: <CA5B0736-CD74-4751-87DA-875D5743A003@elevated-dev.com> (raw)
In-Reply-To: <CA+ebzukaZJVOjw2Vqg0cuCUqbaEEHHuCa-pNbsX6CWAZyga3Fw@mail.gmail.com>
References: <CA+ebzukaZJVOjw2Vqg0cuCUqbaEEHHuCa-pNbsX6CWAZyga3Fw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On May 21, 2015, at 8:54 AM, Kido Kouassi <jjkido@gmail.com> wrote:
> 
> 2: Create an index on the Timestamp column sin it is the one we use the most in queries.

Absolutely. Go ahead right now.

Note that you can use the CONCURRENTLY option to create index, and it will not require a lock on the table, so you can do it while the db is being used. It takes longer, sometimes a lot longer, than the regular create, but who cares? Start it and leave it.

After you’ve done that and seen how much benefit you get just from indexing your most-commonly used column, post a range of common queries back here for further advice.

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (12+ messages)  latest in thread

Message-ID: <CA5B0736-CD74-4751-87DA-875D5743A003@elevated-dev.com>
Permalink:  ../CA5B0736-CD74-4751-87DA-875D5743A003@elevated-dev.com/
Also on:    postgresql.org/message-id/CA5B0736-CD74-4751-87DA-875D5743A003@elevated-dev.com

 · 

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-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, jjkido@gmail.com
  Subject: Re: Read performance on Large Table
  In-Reply-To: <CA5B0736-CD74-4751-87DA-875D5743A003@elevated-dev.com>

* 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