Query performance

Use this board to ask questions or have discussions with other Profound.js users.
Theju112
Profound User
Posts: 48
Joined: Fri Jul 10, 2020 8:35 am
First Name: Thej
Last Name: Pav
Company Name: Confidential
Phone: 00918310800134
Address 1: Chennai
Address 2: India
City: Chennai
State / Province: Outside Canada/USA
Zip / Postal Code: 673592
Country: India
Contact:

Query performance

Post by Theju112 »

Dear Scott and Team,

In one of our apps, We are running quite a number of huge data intensive SQL statements using pjs.query. Since there is a significant performance lag, we are working on converting the SQL statements to views to improve the performance. The issue is with a single screen that has around 11 grids each running its own SQL to fetch its data.

Please let us know what you think about the "view conversion" approach. Is there is something that we can do with the pjs.query to use the same SQL but improve the performance?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Query performance

Post by Scott Klement »

You did not say which database you're using. Currently, we support IBM DB2 for i, Microsoft SQL Server, Oracle, MySQL, and MariaDB.

I would suggest trying your statement in an interactive tool for the database you're using. Does it perform the same as it does in pjs.query()? If the performance is the same (or very close), then pjs.query() is working as expected. In that case, you should analyze the statement and improve its performance using standard SQL performance techniques, such as a query analyzer to determine what is happening, creating indexes to improve performance, etc. SQL performance is a complex topic, and experts have written extensively about the subject.

On the other hand, if the statement runs well in an interactive tool but not so well in pjs.query(), then it could potentially be a problem in Profound.js. In that case, I would open a support ticket with Profound Logic.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests