neverchanje commented on issue #723:
URL: 
https://github.com/apache/incubator-pegasus/issues/723#issuecomment-826645906


   First of all, we use the default ByteWiseComparator because we design the 
key schema based on it.
   We design the hashkey length ahead of the hashkey bytes in order to prevent 
key conflict like:
   
   1. hashkey = a, sortkey = xxx
   
   2. hashkey = ax, sortkey = xx
   
   With the default compactor, the two keys are seen as distinct:
   
   ```
   01axxx
   02axxx
   ```
   
   So we chose this method, but didn't consider that one day we would need 
prefix filtering of hashkey.


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pegasus.apache.org
For additional commands, e-mail: dev-h...@pegasus.apache.org

Reply via email to