At this time, I can not make any changes to of the existing database objects. I can keep in mind for the future point of view.
Thank you.
Sarwar
From: Wetmore, Matthew (CTR) <Matthew.Wetmore@evernorth.com> Sent: Monday, April 8, 2024 9:30 AM To: M Sarwar <sarwarmd02@outlook.com>; Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org> Subject: RE: How to tune SQL performance of function based columns of a view
Make it a Materialized View with storage and you can index on a column. You can index a MV unlike a regular view.
From: M Sarwar <sarwarmd02@outlook.com> Sent: Sunday, April 7, 2024 9:52 PM To: Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org Subject: [EXTERNAL] Re: How to tune SQL performance of function based columns of a view
Hi Ron,
I have analyzed and vacuumed following 2 tables which are used by the views.
TEK_INSPECTION_LIST_MCM
TEST_PART_DETAILS_ALL_MCM_MID
I am still seeing unacceptable response time.
Is there any other way to tune a SQL which is referring a view?