Salesforce

Hints to improve the performance of SQL queries?

« Go Back

Information

 
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
Cause
Resolution
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.

Workaround
Notes
Keyword Phrase
Last Modified Date11/24/2020 6:53 PM

Powered by