You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/09/17 09:41:42 UTC

[GitHub] [iotdb] zyk990424 opened a new pull request #3996: [IOTDB-1703] Fix MManager slow recover with tag

zyk990424 opened a new pull request #3996:
URL: https://github.com/apache/iotdb/pull/3996


   ## Description
   
   
   ### Problem
   IoTDB support tagIndex in memory for tag based timeseries query.
   
   Current tagIndex is based on CopyOnWriteArraySet and the time complexity to construct each set is O(n2).
   
   An existing case is that the time for recovering tagIndex for 50000 timeseries with tags costs 5min or even more, based on working environment.
   
   ### Solution
   
   Replace CopyOnWriteArraySet usage with Collections.synchronizedSet(new HashSet()) and the time cost is only 2s on my laptop.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] HTHou merged pull request #3996: [To rel/0.12][IOTDB-1703] Fix MManager slow recover with tag

Posted by GitBox <gi...@apache.org>.
HTHou merged pull request #3996:
URL: https://github.com/apache/iotdb/pull/3996


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org