git-hulk commented on PR #2839:
URL: https://github.com/apache/kvrocks/pull/2839#issuecomment-2742797552

   > Additionally, the 'type' is decoded from iter->value(), and I don't quite 
understand why it requires scanning metadata when the entire implementation 
seems to be just a combination of scan + mdel.
   
   For example, we have 1,000,000 strings and 100 hash keys with random key 
ranges. And we might need to scan the entire database if we would like to 
delete keys by the hash type.
   
   And yes, it makes sense to use SCAN + DEL if we could limit the maximum 
count on each delete. But perhaps it would be better to use `SCAN` + 
`rocksdb::DeleteRange` if possible.


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