-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue #546
Comments
Hi @umax, thanks for reporting this! Offhand, I don't see any major perf issues with that code; ultimately all the work being done is "parse the response". Unfortunately, that means there probably won't be any quick wins here :( For this specific case, you could try providing a custom subclass for More generally, the So... yeah, allowing direct API access is really the only path I see here. I'd certainly be open to it, but it's going to be a really big change and is going to need a bunch of design work upfront to see how we'd want to do it across all our libs to maintain a consistent feel. If you (or anyone else!) is interested in helping with this work, we can certainly consider it, but on our side of things we likely don't have OSS maintenance hours to devote to this sort of work in the near future. |
Hi, @TheKevJames, thanks for reply! Feel free to close this task. |
Hey, guys! I use this library in my Google Cloud Run services to work with Google Datastore. Let's say you have a service with 10 requests per second traffic. Your service makes request to Google Datastore to fetch 250 entities. Nothing more. Every object from query result converted to Entity class instance. So, Google Cloud Run monitoring shows that my service make 50% CPU load. If I disable converting query results to Entity, service uses 8% CPU. The problem in this function: https://github.com/talkiq/gcloud-aio/blob/master/datastore/gcloud/aio/datastore/value.py#L31
Any ideas how to fix this performance issue?
The text was updated successfully, but these errors were encountered: