jjz921024 commented on PR #2402:
URL: https://github.com/apache/kvrocks/pull/2402#issuecomment-2228640244

   > @ jjz921024 Please let me know if I'm wrong. If the data structure 
contains at least 1 key that can be expired, we set a special bit to true and 
later check it.
   
   Yes. Due to the expiration time is encoded in the field, the time complexity 
of some commands changes from O(1) to O(n), such as `type` and `hlen`. If we 
can check this flag before execution, then the some commands complexity will 
remains the same when
    this feature is not used


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