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

Sql. Improve conversion to BinaryRow in UpdatableTableImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • sql

    Description

      As for now, UpdatableTableImpl uses RowAssembler to re-assemble row prior to send it to the table. The problem here is this is not very efficient because of number of reasons. First, the most simple constructor of RowAssembler is used, this causes tuple builder to preallocate 4kb of buffer, which sometimes is too much. Second, usage of RowAssembler implies double (de-)serialization since every field should be read from source row and write back to target tuple.

      Given that sql row now natively supports to binary tuple conversion, depending on the schema of a table we may reuse that binary tuple or reshuffle fields avoiding deserialisation by reading raw bytes.

      Attachments

        Issue Links

          Activity

            People

              mzhuravkov Maksim Zhuravkov
              korlov Konstantin Orlov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 10m
                  1h 10m