hank icon indicating copy to clipboard operation
hank copied to clipboard

Add ability to query by hashed key directly

Open thomas-kielbus opened this issue 13 years ago • 2 comments

This would allow us to not compute the hash value multiple times and more importantly we could avoid the cost of transferring entire keys over the network if they are large.

thomas-kielbus avatar Nov 10 '11 15:11 thomas-kielbus

There are some tradeoffs, though - for instance, it will be impossible to tell what actual keys are being queried from the server's perspective.

bryanduxbury avatar Nov 10 '11 17:11 bryanduxbury

True. I imagine we could give the user the option to choose between querying by key or querying by hashed key and have clients support both. The former is easier to use (no need to deal with a Hasher) and easier to debug (the server knows what keys are being queried), the latter is more performant -- especially if keys are large.

thomas-kielbus avatar Nov 10 '11 17:11 thomas-kielbus