修改 Google Cloud Datastore API 请求的响应大小
Modify the response size of Google Cloud Datastore API requests
我正在使用 Google Cloud Datastore 来存储一些数据。当试图通过 API 从我的 "Kind" 提取所有实体到 GAS 代码中时,我意识到 API 每次提取 300 个实体。为了提取全部实体,我使用了 "cursor" 选项来获取前一批停止的下一批。
有没有办法一次提取所有实体(或至少超过 300 个)?
在网上寻找答案时,我没有找到任何具体答案。
通过Datastore's Data API is 500 but if you use a lookup operation you could potentially fetch 1000 entities (as long as they are collectively under 10MB for the transaction) as listed under the "Limits" section of Datastore's reference documentation一次可以update/upsert的最大实体数。
但是,您可以利用 Datastore's Admin API to export/import data in bulk. Check out the guide for more information 的 export/import 端点。
我正在使用 Google Cloud Datastore 来存储一些数据。当试图通过 API 从我的 "Kind" 提取所有实体到 GAS 代码中时,我意识到 API 每次提取 300 个实体。为了提取全部实体,我使用了 "cursor" 选项来获取前一批停止的下一批。
有没有办法一次提取所有实体(或至少超过 300 个)?
在网上寻找答案时,我没有找到任何具体答案。
通过Datastore's Data API is 500 but if you use a lookup operation you could potentially fetch 1000 entities (as long as they are collectively under 10MB for the transaction) as listed under the "Limits" section of Datastore's reference documentation一次可以update/upsert的最大实体数。
但是,您可以利用 Datastore's Admin API to export/import data in bulk. Check out the guide for more information 的 export/import 端点。