// A batch put._,err=datastore.PutMulti(ctx,[]*datastore.Key{k1,k2,k3},[]interface{}{e1,e2,e3})// A batch get.varentities=make([]*T,3)err=datastore.GetMulti(ctx,[]*datastore.Key{k1,k2,k3},entities)// A batch delete.err=datastore.DeleteMulti(ctx,[]*datastore.Key{k1,k2,k3})
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-06。"],[[["This API supports first-generation runtimes and is applicable when upgrading to corresponding second-generation runtimes, but for App Engine Go 1.12+ runtime updates, a migration guide is available for legacy bundled service migration options."],["Datastore entities, categorized by kind for queries, are created in Go by instantiating a struct, populating its fields, and using `datastore.Put` to save them, with only exported fields being stored."],["Entities can be retrieved using `datastore.Get` with a `*datastore.Key` and updated by modifying the struct attributes and calling `datastore.Put`, which overwrites existing data."],["Entities can be deleted using the `datastore.Delete` function with the entity's key and for large-scale deletion, Dataflow is recommended for bulk operations."],["Batch operations, including `datastore.PutMulti`, `datastore.GetMulti`, and `datastore.DeleteMulti`, allow operations on multiple entities in a single call, however, costs are incurred for each key regardless of its existence, and transactions are recommended for ensuring complete success or failure."]]],[]]