Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2376

Improve UPDATE STATISTICS performance for varchar columns

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1-incubating
    • 2.2.0
    • sql-cmp
    • None
    • All

    Description

      Today when UPDATE STATISTICS uses internal sort, varchar columns are expanded out to their maximum length with blank padding. This can be quite wasteful both of memory and CPU cycles, as often the average length of a varchar is much less (even orders of magnitude less) than the maximum length. We can do much better performance wise by not doing this expansion, at the cost of some complexity in comparison.

      Attachments

        Issue Links

          Activity

            People

              dbirdsall Dave Birdsall
              dbirdsall Dave Birdsall
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: