You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
First query in application takes a long time #2727
Hey @EJB3927, thanks for reporting. The first API call generally takes more time, due to the authentication step of fetching a token. Are you providing a JSON key file for auth when you instantiate the datastore client, or are you letting Cloud Functions automatically auth?
Also, what amount of time is normal for that query?
We're letting authentication be performed automatically via the GOOGLE_APPLICATION_CREDENTIALS environment variable, even in my local environment. A normal query takes somewhere on the order of a couple dozen milliseconds.
Activity
stephenplusplus commentedon Nov 6, 2017
Hey @EJB3927, thanks for reporting. The first API call generally takes more time, due to the authentication step of fetching a token. Are you providing a JSON key file for auth when you instantiate the
datastoreclient, or are you letting Cloud Functions automatically auth?Also, what amount of time is normal for that query?
EJB3927 commentedon Nov 6, 2017
We're letting authentication be performed automatically via the GOOGLE_APPLICATION_CREDENTIALS environment variable, even in my local environment. A normal query takes somewhere on the order of a couple dozen milliseconds.
stephenplusplus commentedon Nov 6, 2017
Unfortunately, this seems to be a common issue: #2374 (comment)
I'm going to re-open that issue and try to get some input from the relevant teams.