Replies: 0 comments 10 replies
-
|
One complication is that the HEAD response in HTTP is expected to include all metadata including the content length - https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/HEAD. I think I've considered a quick fix in the past, but this complicated matters - though I'm not clear if this is a strict requirement of the HTTP standard. I'm not sure as well how we might be constrained by expectations of the webmachine workflow. I agree though, there are a lot of requirements where a HEAD is sufficient, and I think most developers would expect it to be implemented more efficiently than requesting a GET. Eventually we need to switch the GET gen_fsm to be a gen_statem (or even a gen_server). This might be an excuse to make this happen. |
Beta Was this translation helpful? Give feedback.
-
|
Note this issue may be handled to some extent by OpenRiak/riak_kv#119 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At present, HEAD requests are really just GETs with the object value stripped out at the edge.
With larger object sizes, this is unduly expensive.
Similarly, DELETE operations perform a GET, essentially for nothing but the vclock, which would be much lighter weight utilizing a streamlined HEAD operation.
This proposal aims to sort out what the
riak_clientAPI forhead/?should look like, and whether it should be implemented throughriak_kv_get_fsm(likely?) or a new mechanism.Beta Was this translation helpful? Give feedback.
All reactions