Did this article resolve your question/issue?



Hints to improve the performance of SQL queries?

« Go Back


TitleHints to improve the performance of SQL queries?
URL NameP117623
Article Number000129445
EnvironmentProduct: Progress
Version: 9.1x
Product: OpenEdge
Version: All supported versions
OS: All supported platforms
Other: SQL-92
Question/Problem Description
How to improve SQL queries performance?

What steps can be taken to optimize SQL queries performance?

What are some of the ways and actions that make SQL queries run faster?
Steps to Reproduce
Clarifying Information
Hints and ideas to improve SQL queries performance.

Steps and actions to optimize SQL queries.

Ways to make SQL queries run faster.
Error Message
Defect Number
Enhancement Number
The following ideas, actions and hints contribute to increased SQL query  performance and concurrency:
  1. Run UPDATE STATISTICS and UPDATE INDEX STATISTICS regularly against the database.

  2. Tune the database indexing periodically to ensure it is aligned with the applications' requirements.

  3. Remove unused indexes or add new ones to meet the applications' requirements.

  4. Know the data and the number of records in each table to help write the query in its optimum form.

  5. Write various forms of the query and examine the Query Plan of each variation of the query.

  6. Try to get the query to start its data scanning from the smallest to the largest tables.

  7. Use the query that yields optimum performance during testing in production.

  8. Use statement caching where possible

  9. Use dedicated SQL brokers to handle SQL queries.

  10. Use connection pooling.

  11. Use the READ UNCOMMITTED transaction isolation level where possible.

  12. Use optimistic locking strategy. That is, do not lock any record before its time.

  13. Make the SQL transactions as short as possible to improve both performance and concurrency.

Last Modified Date11/24/2020 6:53 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.