Programming Languages on Power

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power


#Servers
#Programminglanguages
 View Only
  • 1.  When to Reset Usage Statistics or Steps After Adding Indexes

    Posted 03/24/22 05:13 PM
    We recently added some SQL indexes based on the advice by the Index Adviser.  Since adding those indexes, should we reset usage statistics or is there anything we need to do for having updated information since adding those?   What are the best steps to do after adding SQL indexes to get up-to-date advice there?  Is there really anything we need to do for that?

    ------------------------------
    Amy Vozza
    ------------------------------

    #SQL


  • 2.  RE: When to Reset Usage Statistics or Steps After Adding Indexes

    Posted 03/25/22 02:28 AM
    After having added an index based on the index advisor, I'd suggest to just delete the advise.
    Birgitta

    ------------------------------
    Birgitta Hauser
    Database and Software Engineer
    Selfemployed - Modernization-Education-Consulting on IBM i
    Kaufering
    +49 170 5269964
    ------------------------------



  • 3.  RE: When to Reset Usage Statistics or Steps After Adding Indexes

    Posted 04/04/22 11:23 AM
    I agree with deleting the index advice for a table after creating those indexes.

    If the newly created indexes have similar key definitions to existing indexes and you want to closely track which indexes the Db2 optimizer is using going forward, then you could reset the index usage statistics to make that comparison easier.  However - it's not required.

    ------------------------------
    Kent Milligan
    ------------------------------



  • 4.  RE: When to Reset Usage Statistics or Steps After Adding Indexes

    Posted 04/20/22 02:43 PM
    I recently came across the RUNSTATS command. Do you recommend calling this after an index is created as well?

    ------------------------------
    Mike Zaringhalam
    ------------------------------



  • 5.  RE: When to Reset Usage Statistics or Steps After Adding Indexes

    Posted 04/20/22 03:07 PM
    The RUNSTATS command is for the other Db2 products.  If you have the QDBFSTCCOL system value set to *ALL, then Db2 for i is effectively automatically running it's version of that command for you.

    ------------------------------
    Kent Milligan
    ------------------------------