Hi Jon, Unfortunately, it is not possible to update just the metadata of the object; updating the entire object is required. One possible alternative is to store the metadata and body as two separate objects which would allow you to update the metadata without resending the body.
Some initial thoughts related to this issue have been documented in bug 7: https://issues.basho.com/show_bug.cgi?id=7 Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. [email protected] On Tue, Nov 23, 2010 at 7:47 AM, Jon Brisbin <[email protected]> wrote: > Is it possible to update only headers on an object? > > In writing the Riak spring-data support, I'm having to update objects in > their entirety to manage relationships between them. In one operation I > might create an object and in another, I might add a link to it (after I've > saved the new child object). I'm sending the body content back when I add > the links or set the metadata, but this seems like overkill (and fragile). > Is there a way to set only headers on an object? I'd like to just add a Link > header without having to process all the existing Link headers, throwing out > any I don't care about (like rel="up", et al), add my new Link, then put all > that stuff back into the store. > > If this capability doesn't exist, is there a way I can write a plugin to > implement it? Or would it require hacking Riak core? > > Or is there a better way entirely? > > Thanks! > > J. Brisbin > http://jbrisbin.com/ > > > > > > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
