pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Need support on tuning at the time of index creation
Date: Mon, 27 Jan 2020 23:46:16 +0100
Message-ID: <20200127224616.GA30598@hjp.at> (raw)
In-Reply-To: <VI1PR07MB4912D82E4EF770346FDD0E66E60B0@VI1PR07MB4912.eurprd07.prod.outlook.com>
References: <VI1PR07MB4912D82E4EF770346FDD0E66E60B0@VI1PR07MB4912.eurprd07.prod.outlook.com>

On 2020-01-27 11:10:36 +0000, Sandip Pradhan wrote:
> One of our ericsson product used backend db as postgresql 9. We are facing
> following performance issues where we need some support from your side.
> We are having 10 tables and we are inserting around 150 million to 250 million
> records on each of those tables. After that we need to create 29 indexes
> includung primary key index and other types of indexes. Currently it is taking
> almost 3.5 to 4 hrs.

It is hard to give advice on what you could do differently if you don't
tell us what you do.

How are you inserting those rows? 
How are you creating the indexes?

Especially: Are you doing things serially or in parallel?

Also performance depends a lot on hardware, so faster CPUs (or more
cores) and faster disks/ssds might help, too.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (9+ messages)  latest in thread

Message-ID: <20200127224616.GA30598@hjp.at>
Permalink:  ../20200127224616.GA30598@hjp.at/
Also on:    postgresql.org/message-id/20200127224616.GA30598@hjp.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: Need support on tuning at the time of index creation
  In-Reply-To: <20200127224616.GA30598@hjp.at>
  References: <VI1PR07MB4912D82E4EF770346FDD0E66E60B0@VI1PR07MB4912.eurprd07.prod.outlook.com> <20200127224616.GA30598@hjp.at>

* 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