Original issue 231 created by objectify on 2015-03-25T12:32:37.000Z:
It would be handy to get a count of the number of deferred operations. Sometimes I use defer() just to batch things up for performance. Think of a task that loops through all the entities of a given kind updating them. If there are many, it would make sense to flush them periodically:
for each entity
ofy().defer().update()
if there are > 1000 updates waiting
ofy().flush()
Certainly I can keep track myself, so no big deal, but I think it would be nice to have supported within Objectify since the data is already there.
Original issue 231 created by objectify on 2015-03-25T12:32:37.000Z:
It would be handy to get a count of the number of deferred operations. Sometimes I use defer() just to batch things up for performance. Think of a task that loops through all the entities of a given kind updating them. If there are many, it would make sense to flush them periodically:
for each entity ofy().defer().update() if there are > 1000 updates waiting ofy().flush()
Certainly I can keep track myself, so no big deal, but I think it would be nice to have supported within Objectify since the data is already there.