WangChao created IOTDB-596:
------------------------------

             Summary: [Distributed] Better cache for remote schema
                 Key: IOTDB-596
                 URL: https://issues.apache.org/jira/browse/IOTDB-596
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Cluster
            Reporter: WangChao


Each timeseries has its own sampling period. For the timeseries with short 
sampling period, it should exist in cache for a long time. The LRU algorithm is 
based on the access frequency to eliminate the timeseries.

 

Therefore, the following scenarios may exist:

 

A timeseries generates one data per second, and B timeseries generates one data 
every 10 seconds. Maybe the 10th second,  A will be eliminated from the cache.

 

Consider a better cache algorithm, for example:

 

Add sample period data to each time series. When the time sequence needs to be 
eliminated, compare the sampling period, and leave the short time.

 

As for how to obtain the sampling period, a simple point can sample the time 
interval between two accesses of the cache.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to