Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10309

Avoid always looking up column type

    XMLWordPrintableJSON

Details

    Description

      Doing some read profiling I noticed we always seem to look up the type of a column from the schema metadata when we have the type already in the column class.

      This one simple change to SerializationHeader improves read performance non-trivially.
      https://github.com/tjake/cassandra/commit/69b94c389b3f36aa035ac4619fd22d1f62ea80b2

      http://cstar.datastax.com/graph?stats=3fb1ced4-58c7-11e5-9faf-42010af0688f&metric=op_rate&operation=2_read&smoothing=1&show_aggregates=true&xmin=0&xmax=357.94&ymin=0&ymax=157416.6

      I assume we are looking this up to deal with schema changes. But I'm sure there is a more performant way of doing this.

      Attachments

        Issue Links

          Activity

            People

              carlyeks Carl Yeksigian
              tjake T Jake Luciani
              Carl Yeksigian
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: