I want to add 100 entities (then update and delete them) to the datastore, but I don't know how to do that in a low level api. I did it in JDO. The documentation for low level is very scarce.
Asked
Active
Viewed 2,076 times
2 Answers
1
You can pass a collection of entities to put method - this will batch create/update the entities: datastoreService.put(Iterable<Entity>)
(collection of Entities).
You can also batch delete: datastoreService.delete(Iterable<Key> collection)
(collection of Keys) or datastoreService.delete(Key.. keys)
(array of Keys)

Shai Almog
- 51,749
- 5
- 35
- 65

Peter Knego
- 79,991
- 11
- 123
- 154
0
The documentation is here: Batch Operations.
I suggest you to take a look at the async datastore api as well to improve even more the performance of your application.

Gilberto Torrezan
- 5,113
- 4
- 31
- 50