Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleSQL request (query text + arguments array
packer
        .packString("select * from cars where year > ? and seats = ?")
        .packArrayHeader(2)
        .packInt(2005)
        .packInt(2);

Result is 54 bytes:Image Added

Image Added

For comparison, current Ignite binary protocol encodes the same data in 71 bytes, and takes twice as much time to do so. View filenameMsgPackSqlExample.svgheight250

MsgPack Customization

TODO: We need custom resolvers for (at least) UUID, dates, decimals.

...