Ask Your Question
0

obejct stores and features

asked 2013-07-27 09:57:17 -0500

Hi,

I don't know if this is the right place to ask following questions or these may be dumbest questions ever but I had to ask them.

Object stores like Swift supports access to the object through REST API like PUT/GET etc. But the API seems to be very very basic. Basic meaning that whenever I have to update any object I need to upload complete copy of the object. Can't we just send a diff of original object to update it? OR Whenever we read an object we need to read it completely cant we reed a part of an object say first 100 bytes like start=0 size =100 ?

I had tried sending diff thing sometimes back and worked for me well. I was able to send out diff and make it applicable on the copy in swift.

Lastly, has time come to make Object Stores support theses kind of feature?

Thanks in advance !!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-29 17:22:27 -0500

torgomatic gravatar image

Look up the HTTP Range header for how to read a subset of an object. Swift supports that.

As for delta updates, it's harder than it seems. You need atomic updates (even under concurrency) that also update the Etag, work with container sync, and don't have too big an adverse effect on performance. People have tried, and if you're thinking of trying, I encourage you to go look at the abandoned patches and make sure you understand the problems those patches had.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-27 09:57:17 -0500

Seen: 20 times

Last updated: Jul 29 '13