KeeProMise opened a new pull request, #7137:
URL: https://github.com/apache/iotdb/pull/7137

   ## Description
   provide a new deviceID, use a long variable composed of schemaRegion+int_32 
instead of devicePath, which can easily build an index for the device and 
reduce the storage space occupied by storing long devicePath strings
   
   ## Different
   -  **DeviceIDFactory** : add the getDeviceIDWithAutoCreateFunction method to 
separate the writing and reading of deviceID, because writing requires a new 
deviceID object to be generated when a device is added for the first time, but 
reading does not need it. Continuing to use the same method cannot distinguish 
between reading and writing.
   -  **IStatefulDeviceID** : added IStatefulDeviceID interface: state recovery 
is required during restart
   -  **StandAloneAutoIncDeviceID** :  using auto-incrementing id as device 
id,A complete auto-increment id consists of schemaRegionID and autoIncrementID, 
where the upper 32 bits are schemaRegionID and the lower 32 bits are
   autoIncrementID
   
   Detailed 
documentation:https://apache-iotdb.feishu.cn/docx/doxcn0K2B6LI1bGr9QpvkYfFUCe


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to