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)