cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-11622) Optimize native protocol result set serialization format
Date Wed, 20 Apr 2016 16:05:25 GMT
Sylvain Lebresne created CASSANDRA-11622:
--------------------------------------------

             Summary: Optimize native protocol result set serialization format
                 Key: CASSANDRA-11622
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11622
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Sylvain Lebresne


The format in which result sets are serialized in the native protocol has the advantage of
being very simple (which was, initially, a feature), but it isn't very optimal. It's probably
now time to think about optimizing it further.

At the very least, there is 2 simple optimizations we can do:
# we can avoid the repetition of partition key columns (as well as duplicate clustering column
value when we have more than one clustering column, though we'd have to recompute this at
the CQL level since we don't have this "optimization" internally (yet at least), contrarily
to the partition key case).
# we can optimize the serialization of value of fixed-width type (like we now do internally)
by skipping the current 4 byte length. We could also maybe use vints for the remaining case
where there is a length.

But of course, it's worth considering other potential optimization while we're at it.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message