Re: Query Tunning related to function

2022-04-17 Thread David G. Johnston
On Sun, Apr 17, 2022 at 8:53 AM Kumar, Mukesh wrote: > We request you to please provide some assistance on below issue and it is > impacting the migration project. > I suggest you try and re-write the loop-based function into a set-oriented view. Specifically, I think doing: "array_agg(DISTINCT

RE: Query Tunning related to function

2022-04-17 Thread Kumar, Mukesh
; MUKESH KUMAR ; heda.giri...@tcs.com Subject: RE: Query Tunning related to function Hi Babu , Please find below the script for the function from Oracle Hi babu , Please find attached the script for function from Oracle . Please revert in case of any query. Thanks and Regards, Mukesh Kumar From

RE: Query Tunning related to function

2022-04-17 Thread Kumar, Mukesh
: Michel SALAIS ; Ranier Vilela ; postgres performance list ; MUKESH KUMAR ; heda.giri...@tcs.com Subject: Re: Query Tunning related to function Can you paste from oracle for Set lines 1 Select text from dba_source Where name = UPPER('translate_payment_status') And owner = 'IMS_APP

Re: Query Tunning related to function

2022-04-16 Thread Justin Pryzby
On Thu, Apr 14, 2022 at 06:03:33AM +, Kumar, Mukesh wrote: > We are running the below query in PostgreSQL and its taking approx. 8 to 9 > sec to run the query. > > Query - 1 ... > > The explain plan and other details are placed at below link for more > information. We have checked the index

Re: Query Tunning related to function

2022-04-14 Thread Bhupendra Babu
request > > group by > > payment_sid_c > > having > > lms_app.translate_payment_status(payment_sid_c) IN ('PAID', > 'MANUALLYPAID') > > > > And you can also try to write the query like this: > > > > Select t.payment_sid_c, lms_

RE: Query Tunning related to function

2022-04-14 Thread Kumar, Mukesh
ciated. Thanks and Regards, Mukesh Kumar From: Michel SALAIS Sent: Thursday, April 14, 2022 11:45 PM To: Kumar, Mukesh ; 'Ranier Vilela' Cc: pgsql-performa...@postgresql.org; 'MUKESH KUMAR' Subject: RE: Query Tunning related to function Hi, This part of the function

RE: Query Tunning related to function

2022-04-14 Thread Michel SALAIS
LAIS De : Kumar, Mukesh Envoyé : jeudi 14 avril 2022 16:45 À : Ranier Vilela Cc : pgsql-performa...@postgresql.org; MUKESH KUMAR Objet : RE: Query Tunning related to function Hi Rainer , We tried to create the partial ‘index on table but it did not help, and it is taking approx. 7

RE: Query Tunning related to function

2022-04-14 Thread Kumar, Mukesh
: Ranier Vilela Sent: Thursday, April 14, 2022 7:56 PM To: Kumar, Mukesh Cc: pgsql-performa...@postgresql.org; MUKESH KUMAR Subject: Re: Query Tunning related to function Em qui., 14 de abr. de 2022 às 08:01, Kumar, Mukesh mailto:mku...@peabodyenergy.com>> escreveu: Hi Team, We are running the

Re: Query Tunning related to function

2022-04-14 Thread Ranier Vilela
Em qui., 14 de abr. de 2022 às 08:01, Kumar, Mukesh < mku...@peabodyenergy.com> escreveu: > Hi Team, > > > > We are running the below query in PostgreSQL and its taking approx. 8 to 9 > sec to run the query. > > > > Query – 1 > > > > Select * from > > ( > > Select payment_sid_c, > > lms_app.

Query Tunning related to function

2022-04-14 Thread Kumar, Mukesh
Hi Team, We are running the below query in PostgreSQL and its taking approx. 8 to 9 sec to run the query. Query - 1 Select * from ( Select payment_sid_c, lms_app.translate_payment_status(payment_sid_c) AS paymentstatus from lms_app.lms_payment_check_request group by payment_sid_c) a