obejct stores and features

Asked by gaurav

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 !!!

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Samuel Merritt (torgomatic) said :
#1

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.

Can you help with this problem?

Provide an answer of your own, or ask gaurav for more information if necessary.

To post a message you must log in.