You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Asaf Mesika (JIRA)" <ji...@apache.org> on 2012/11/18 19:34:58 UTC

[jira] [Commented] (HBASE-4210) Allow coprocessor to interact with batches per region sent from a client(?)

    [ https://issues.apache.org/jira/browse/HBASE-4210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499868#comment-13499868 ] 

Asaf Mesika commented on HBASE-4210:
------------------------------------

One perfect use case for this is [https://issues.apache.org/jira/browse/HBASE-3434]. 
You can have a co-processor hook on preIncrementValue which converts a list of Increment to a list of Put, and then have a co-processor hook on preGet which aggregates them and serve them as one result. On the preCompact hook you can aggregate them and increment the original KV.
Without the preMulti you are forced to write each Put to the WAL, thus not enjoying the write once to WAL on a list of Increment. All caused by the fact that you are only seeing one Increment at a time

                
> Allow coprocessor to interact with batches per region sent from a client(?)
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-4210
>                 URL: https://issues.apache.org/jira/browse/HBASE-4210
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Lars Hofhansl
>            Priority: Minor
>
> Currently the coprocessor write hooks - {pre|post}{Put|Delete} - are strictly one row|cell operations.
> It might be a good idea to allow a coprocessor to deal with batches of puts and deletes as they arrive from the client.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira