1

I'm using Google App Engine, and I have to deal with large files.

I need to append data to these files frequently.

If I use blobstore, I can't modify the file after I finalize it. To append something to the file, I must create a new file, copy the old file's content, and write the appended content. I think it's a waste to copy the old file because I just want to append append something.

If I use datastore, I can put the file into an entity's property as a integer list. To append something to the file, I can get the entity, get the corresponding property, append to the list, and put the entity back to the datastore. However, this method waste a lot of my datastore quota.

Is there any way I can use to just append something to my file, without touching the rest of the file's content?

Thanks!

4

0 回答 0