You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2021/04/26 08:54:50 UTC

[GitHub] [incubator-pegasus] neverchanje commented on issue #723: Proposal: Redesign of Pegasus Scanner

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:
users@infra.apache.org



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