-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
api: datastoreIssues related to the googleapis/python-datastore API.Issues related to the googleapis/python-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
I believe there is a change of API or a performance issue when using batches with 2.1.0.
Environment details
- OS type and version: Windows 10
- Python version: 3.8.7
- pip version: 20.3.3
google-cloud-datastoreversion: 2.1.0google-api-coreversion: 1.24.1
Steps to reproduce
- Use DatastoreClient::put_multi with 500 entities inside a batch
Code example
with client.batch():
client.put_multi(chunk)Performance
When using 1.15.0, my code can handle 9 batches of 500 entities in about 1-2 seconds while 2.1.0 takes literal minutes.
Disclaimer: I use the datastore emulator
EDIT: It can be reproduced in 2.0.0
brianquirion, LeandreArseneault and umax
Metadata
Metadata
Assignees
Labels
api: datastoreIssues related to the googleapis/python-datastore API.Issues related to the googleapis/python-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.