google-app-engine - 增量更新 google blobstore 或云存储?

标签 google-app-engine blobstore google-cloud-storage

我正在开发一个应用程序,其中用户将创建一个数据对象并将其上传到存储。然后,他们稍后会下载它,进行一些更改,然后上传这些更改(作为原始数据的补丁)。有没有办法使用 blobstore 或云存储来上传补丁并应用它,以便我的用户不必再次上传整个数据对象(它可能会变得相当大)?

最佳答案

您无法对 Blobstore 或 Cloud Storage 中的数据发出增量更新。要应用补丁,您必须自己应用它并覆盖 blob 或对象中的数据。相关信息如下。

来自Concepts and Terminology section Google 云存储文档:

Objects are immutable, which means that an uploaded object cannot change throughout its storage lifetime. An object's storage lifetime is the time between successful object creation (upload) and successful object deletion. In practice, this means that you cannot make incremental changes to objects, such as append operations or truncate operations. However, it is possible to overwrite objects that are stored in Google Cloud Storage because an overwrite operation is in effect a delete object operation followed immediately by an upload object operation. So a single overwrite operation simply marks the end of one immutable object's lifetime and the beginning of a new immutable object's lifetime.

来自Blobstore Introduction section :

Blobs can't be modified after they're created, though they can be deleted. Each blob has a corresponding blob info record, stored in the datastore, that provides details about the blob, such as its creation time and content type. You can use the blob key to fetch blob info records and query their properties.

关于google-app-engine - 增量更新 google blobstore 或云存储?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14346295/

相关文章:

Python Google App Engine Image 对象

google-app-engine - 使用 Flask (python) 从 GAE 数据存储服务图像

firebase - 如何根据用户auth uid授予对Google云存储桶的访问权限

google-app-engine - HTTP 获取 204 无内容 : Is that normal

google-app-engine - 替代 Google Cloud Function 的替代方法

java - 如何从 Servlet 获取我的应用程序引擎主页

python - 如何在 appengine 中模拟追随者流?

google-app-engine - 上传 100 万张图片到 BlobStore

javascript - 使用 javascript 将请求批量上传到 Google Cloud Storage

python - 使用 Python 对 Google Storage 进行身份验证