Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-1436

optimize concurrency control for datamap

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: core
    • Labels:
      None

      Description

      1. 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.

      1. Analyze

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

      1. Modification

      + Synchronized by table.

      + Use double checked locking to reduce lock overhead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xuchuanyin Chuanyin Xu
                Reporter:
                xuchuanyin Chuanyin Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h