You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "xuchuanyin (JIRA)" <ji...@apache.org> on 2017/08/31 06:24:00 UTC

[jira] [Created] (CARBONDATA-1436) optimize concurrency control for datamap

xuchuanyin created CARBONDATA-1436:
--------------------------------------

             Summary: optimize concurrency control for datamap
                 Key: CARBONDATA-1436
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1436
             Project: CarbonData
          Issue Type: Improvement
          Components: core
            Reporter: xuchuanyin
            Assignee: xuchuanyin
            Priority: Minor
             Fix For: 1.2.0



# Scenario

`DataMapStoreManager` provides a synchronized interface `getDataMap` to retrieve a table's `TableDataMap`. It will cause performance problems in current query scenario when all the queries have to wait the former query finished.

# Analyze

We can make the concurrent control in table scope instead of global scope.

# Modification

+ Synchronized by table.

+ Use double checked locking to reduce lock overhead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)