Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1836

mutation could take key-value pairs in put() to be more efficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Right now, if I have a key-value pair and I want to make an insert out of it, I have to do something like this:

      m.put(key.getColumnFamily(), key.getColumnQualifier(), new ColumnVisibility(key.getColumnVisibility()), value);
      

      However, I believe this results in the data in the key being array copied twice which is pretty inefficient (profiling shows this to be a fairly significant portion of our running time on heavy ingest). Since I think exposing the byte arrays directly is not preferred, perhaps there could be a method Mutation.put(Key,Value) that efficiently re-uses the byte arrays. Maybe it assumes the rows are the same, or maybe it could have an option for checking that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmccubbin Chris McCubbin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: