· Jan 11, 2019 4m read

SQL Performance Resources

There are three things most important to any SQL performance conversation:  Indices, TuneTable, and Show Plan.  The attached PDFs includes historical presentations on these topics that cover the basics of these 3 things in one place.  Our documentation provides more detail on these and other SQL Performance topics in the links below.  The eLearning options reinforces several of these topics.  In addition, there are several Developer Community articles which touch on SQL performance, and those relevant links are also listed.

There is a fair amount of repetition in the information listed below.  The most important aspects of SQL performance to consider are:

  1. The types of indices available
  2. Using one index type over another
  3. The information TuneTable gathers for a table and what it means to the Optimizer
  4. How to read a Show Plan to better understand if a query is good or bad

Below are some general resources to learn more about InterSystems IRIS SQL Performance:

  1. The Worldwide Response Center (WRC) at 617-621-0700
    The WRC is there for you.  They can cover SQL performance with you at whatever level you are comfortable.  There are several good SQL Support people and you may also feel free to ask for Brendan Bannon, Support Manager to be connected to an appropriate advisor.

  2. InterSystems online documentation
    1. First Look:  InterSystems SQL:
    2. First Look: Optimizing SQL Performance with InterSystems Products:
    3. InterSystems SQL Optimization Guide:
  3. InterSystems eLearning
    1. Resource Guide - Learn Caché SQL: Performance:
    2. Resource Guide – Learn Caché SQL: Design and Execution:
    3. Optimizing SQL Queries:
    4. Academy:  Optimizing SQL Performance:
    5. Optimizing Your SQL Queries:
  4. InterSystems Developers Community
    1. The One Query Performance Trick You NEED to Know? Tune Table!
    2. Horizontal Scalability with InterSystems IRIS:
    3. Introduction to Outlier Selectivity:
    4. Improve SQL Performance for Date Queries.:
    5. Improve SQL Performance for Date Queries, AGAIN!:
    6. Creating a Custom Index Type in Caché:
    7. Globals Are Magic Swords For Managing Data.  Part 1:
    8. Globals – Magic swords for storing data. Trees.  Part 2:
    9. Globals – Magic swords for storing data. Sparse arrays.  Part 3:
    10. Free Text Search:  The Way To Search Your Text Fields That SQL Developers Are Hiding From You!*:
    11. Indexing of non-atomic attributes:
    12. SQL index for array property elements:
  5. PowerPoints from prior years

The accompanying presentations are older but provide solid material.  Most of the information should apply to InterSystems IRIS although double-check with current documentation to confirm.  All of the following can be found in PDF format attached to this article:

    1. Introduction To Indexing
    2. Optimizing SQL Performance (2015)
    3. %PARALLEL Query Hint (2016)
    4. Frozen Plans and Parallel Queries (2017)
    5. Show Plan to Generated COS (2013)
    6. Programming with SQL (2006)

(Credit for authorship of this article goes to Brendan Bannon, with editing assistance from Cliff Mason and Kyle Baxter) 

Discussion (1)3
Log in or sign up to continue