|
string | POOL_NAME = 'put_pool' |
|
A trimmed copy of the MutationPool class.
Properties:
puts: a list of entities to put to datastore.
max_entity_count: maximum number of entities before flushing it to db.
def google.appengine.ext.datastore_admin.utils.PutPool.__init__ |
( |
|
self, |
|
|
|
max_entity_count = context.MAX_ENTITY_COUNT |
|
) |
| |
Constructor.
Args:
max_entity_count: maximum number of entities before flushing it to db.
def google.appengine.ext.datastore_admin.utils.PutPool.flush |
( |
|
self | ) |
|
Flush all puts to datastore.
def google.appengine.ext.datastore_admin.utils.PutPool.Put |
( |
|
self, |
|
|
|
entity |
|
) |
| |
Registers entity to put to datastore.
Args:
entity: The EntityProto for the entity to be put.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/datastore_admin/utils.py