pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew cooke <andrew@acooke.org>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Kumar, Mukesh <MKumar@peabodyenergy.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: MUKESH KUMAR <mukesh.kumar14@tcs.com>
Subject: Re: Performance for SQL queries on Azure PostgreSQL PaaS instance
Date: Wed, 13 Apr 2022 07:17:56 -0400
Message-ID: <20220413111756.niehtkrpcv4ptf2h@acooke.org> (raw)
In-Reply-To: <4ae8501377e4ba5155cfee5e6eaca3fe674f7f98.camel@cybertec.at>
References: <CH0P221MB0474098EC70BA27F2CC2733EDEED9@CH0P221MB0474.NAMP221.PROD.OUTLOOK.COM>
	<4ae8501377e4ba5155cfee5e6eaca3fe674f7f98.camel@cybertec.at>

On Wed, Apr 13, 2022 at 10:34:24AM +0200, Laurenz Albe wrote:
> On Tue, 2022-04-12 at 09:10 +0000, Kumar, Mukesh wrote:
> > We have recently done the migration from Oracle Database Version 12C to Azure
> > PostgreSQL PaaS instance version 11.4 and most of the application functionality
> > testing has been over and tested successfully 
> >  
> > However, there is 1 process at application level which is taking approx. 10 mins
> > in PostgreSQL and in oracle it is taking only 3 mins.
> >  
> > After investigating further we identified that process which is executed from
> > application end contains 500 to 600 no of short SQL queries into the database.
> > We tried to run the few queries individually on database and they are taking
> > less than sec in Postgres Database to execute, and we noticed that in Oracle
> > taking half of the time as is taking in PostgreSQL. for ex . in oracle same
> > select statement is taking 300 millisecond and in PostgreSQL it is taking
> > approx. 600 millisecond which over increases the execution of the process.
> >  
> > Oracle Database are hosted on ON- Prem DC with dedicated application server on
> > OnPrem and same for PostgreSQL.
> 
> How can a database hosted with Microsoft be on your permises?

Not OP, but it couldn't it be
https://azure.microsoft.com/en-us/overview/azure-stack/ ?

> Apart from all other things, compare the network latency.  If a single request
> results in 500 database queries, you will be paying 1000 times the network
> latency per request.
> 
> Yours,
> Laurenz Albe
> -- 
> Cybertec | https://www.cybertec-postgresql.com
> 
> 
> 





view thread (7+ messages)  latest in thread

Message-ID: <20220413111756.niehtkrpcv4ptf2h@acooke.org>
Permalink:  ../20220413111756.niehtkrpcv4ptf2h@acooke.org/
Also on:    postgresql.org/message-id/20220413111756.niehtkrpcv4ptf2h@acooke.org

 · 

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: andrew@acooke.org, laurenz.albe@cybertec.at, MKumar@peabodyenergy.com, mukesh.kumar14@tcs.com
  Subject: Re: Performance for SQL queries on Azure PostgreSQL PaaS instance
  In-Reply-To: <20220413111756.niehtkrpcv4ptf2h@acooke.org>

* 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