symious commented on PR #3082:
URL: https://github.com/apache/ozone/pull/3082#issuecomment-1567864650

   > My question is why we cannot reuse ContainerKeyPrefix? How can 
KeyPrefixContainer fix the slowness but ContainerKeyPrefix cannot?
   
   The slowness was coming from the operation of "getContainerForKeyPrefixes", 
since `ContainerKeyPrefix` is for mapping "container -> keyPrefix", so if we 
are trying to get the containers for a specific keyPreifx, we need to travel 
all the table of `ContainerKeyPrefix`, and it's time consuming when 
`ContainerKeyPrefix` is large.
   
   With the help of "KeyPrefixContainer", the operation of 
"getContainerForKeyPrefixes" will be quite fast.
   
   @szetszwo 


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to