Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13364

Improve index inline defaults

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12
    • sql
    • None
    • Calculation of the default index length was changed for varchar and binary columns. IGNITE_MAX_INDEX_PAYLOAD_SIZE was increased to 64.
    • Docs Required, Release Notes Required

    Description

      We need to improve how inline size is calculated by default for variable-length types.

      Currently if a varlength type is encountered inline size just defaults to 10, which is almost always not enough.

      A more sensible behavior would be the following:

      1. Add a fixed default to the inline size calculation for every variable-length type. For example, if the default inlined size for a string is 10 then an index like (INT, VARCHAR, VARCHAR, INT) should have inline size default as 5 + 10 + 10 + 5 = 30 (5 for each int, 10 for each string).

      2. Add special support for VARCHAR_FIXED - if a VARCHAR has known length then that length is used for inline size calculation

      Attachments

        Issue Links

          Activity

            People

              timonin.maksim Maksim Timonin
              erudenko Evgeniy Rudenko
              Stanislav Lukyanov Stanislav Lukyanov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h