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:

For comparison, current Ignite binary protocol encodes the same data in 71 bytes, and takes twice as much 2x time to do so (see benchmarks linked below - writeSqlQueryIgnite and writeSqlQueryMsgPack).

Why MsgPack

The goal is to find an existing serialization format that satisfies the following requirements:

...