Search code examples
google-app-enginegoogle-cloud-datastoregoogle-cloud-platformobjectify

What is the limit on the number of entities in case of batch get/ save in objectify?


Objectify supports batch get of entities by using:

ofy().load().type(TestEntity.class).ids(testIdList).now(); 

and batch save by using:

ofy().save().entities(testEntityList).now();

My question is what is the limit on the number of entities that we can get or save using this approach?

Is there any limit specified by objectify/ datastore Also even if there is no limit specified by objectify or datastore, I suppose there would be practical limit due to the 60 second timeout for each request in app engine?


Solution

  • Assuming you're not in a transaction, the only limits should be the 60s request deadline and the amount of RAM the entities occupy (F1 instances are rather tight).