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

Yiqun Lin edited comment on HDDS-775 at 10/31/18 3:27 PM:
----------------------------------------------------------

Looks like this change can also be used for trunk, [~msingh]. One comment for 
the patch: writeBatch operation should under lock protection. And lock 
operation should be moved outside  loop.


was (Author: linyiqun):
Looks like this change can also be used for trunk, [~msingh]. One comment for 
the patch: writeBatch operation should be done before unlock operation. So lock 
operation should also be executed before for loop.

> Batch updates to container db to minimize number of updates.
> ------------------------------------------------------------
>
>                 Key: HDDS-775
>                 URL: https://issues.apache.org/jira/browse/HDDS-775
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: SCM
>    Affects Versions: 0.3.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>         Attachments: HDDS-775-ozone-0.3.001.patch
>
>
> Currently while processing container reports, each report results in a put 
> operation to the db. This can be optimized by replacing put with a batch 
> operation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to