[
https://issues.apache.org/jira/browse/HBASE-10487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896142#comment-13896142
]
Feng Honghua commented on HBASE-10487:
--------------------------------------
Thanks all
bq.Is that a common scenario, though. Append is not very useful (compared to
just Put) when you don't update an existing value.
Agree that Append on non-existing value isn't a common scenario, it occurs only
once on cells for which Append is used to update the value. But the
first-time-update can't be replaced as a Put though, so the first-time-update
on those cells are always the scenario where Append is used to update a
non-existing value
> Avoid allocating new KeyValue and according bytes-copying for appended kvs
> which don't have existing(old) values
> ----------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-10487
> URL: https://issues.apache.org/jira/browse/HBASE-10487
> Project: HBase
> Issue Type: Improvement
> Components: regionserver
> Reporter: Feng Honghua
> Assignee: Feng Honghua
> Attachments: HBASE-10487-trunk_v1.patch
>
>
> in HRegion.append, new KeyValues will be allocated and do according
> bytes-copying no matter whether there are existing kv for the appended cells,
> we can improve here by avoiding the allocating of new KeyValue and according
> bytes-copying for kv which don't have existing(old) values by reusing the
> passed-in kv and only updating its timestamp to 'now'(its original timestamp
> is latest, so can be updated)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)