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

Incorrect inline suggestion.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.9
    • None
    • sql
    • None
    • current implementation seems correct, _pk size additionally used while we have a deal with insert operations.

    Description

      I found that inline size suggestions are incorrect, check for example :

      Indexed columns of a row cannot be fully inlined into index what may lead to slowdown due to additional data page reads, increase index inline size if needed (use INLINE_SIZE option for CREATE INDEX command, QuerySqlField.inlineSize for annotated classes, or QueryIndex.inlineSize for explicit QueryEntity configuration) [cacheName=myCache, tableName=myTable, idxName=SOME_IDX_NAME, idxCols=[PAYMENTDATE, STATUS, _KEY], idxTypes=[0, 13, 19], curSize=10, idxType=SECONDARY, recommendedInlineSize=96]
      

      but why ? If PAYMENTDATE - long and STATUS is boolean, i believe it need to be calculated like:
      5 bytes for BO header + 8 (long) + 4? (boolean) = 17, and i don`t understand why "_KEY" presented here, no need to append inner field size here.

      Attachments

        Activity

          People

            zstan Evgeny Stanilovsky
            zstan Evgeny Stanilovsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: