Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwD9J-0004ZW-Ak for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 22:46:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwD9H-0004ZS-20 for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 22:46:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwD9G-0004ZK-LT for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 22:46:26 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwD99-0001ww-Vm for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 22:46:25 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 9D670210B; Mon, 27 Jan 2020 23:46:16 +0100 (CET) Date: Mon, 27 Jan 2020 23:46:16 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Need support on tuning at the time of index creation Message-ID: <20200127224616.GA30598@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 mi= llion > 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 t= aking > 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?=20 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 --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl4vaDQACgkQ8g5IURL+ KF3Dpg//UNIQ6+JapEVoaNR+D5qyE7LkfTZe0SbKkB9Ly6q6R9/LbolNheZGH6Xo VfEAJLBM0BKaqw7CiU+Iqw+i414Zgl5m0+IRkQuwwzlusqUt7SFmWOcYkFSHtp3p DSQh62yy3NKtvSX9FJBigVe6e0bZ4QOYFZuuWW+/7W5/9sZUfFU/3cNJJ/zvWb5z FngbUhdoWGaef5gSVhtIKb27pz/oMP/jst2UuAZpzo+WVq+6QUg5nizoTm68VUJ5 rmU+yEF4Y5qy06uHZiI9pWjaZVZEgEOdiS3H7VrGRLE5bXGp+DpCF7incqH3lREw QUv0vI2rMNfPb9thcDpMTSJWueU5ziW7r221iZ4XFnypiONDbJLhEOQ/Y4HMCJbh KEiK69N96kiyI5R/JqBKjsnHhZKlIy/BnDoFoeSHH03poilGerlN41jzgwtcfr/x N0n0zDb1JOZ5O3lOjdkLTXSdA3+LcMZ9uPrDQySUQRA6KHdI8ZQXKEDNEvGstf2e 6xMsZd69wthPToBnJwyr8/a1qpom9ced2SEjQIZDxMXRqfww95kseTwNvSwt5kED iM2BErOEpSEUZtduoNIgxrgSVpAhmOq7XoPj6Jbqi6ygepcUtIZH1N53zFdazVCK hj9wvPlym29mOQs4dNf6U6DiZj8yQxg7OhUFqBv6di1J78Qg3rE= =mdwP -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--