I'm trying to get started with the Node client library for Google Cloud Datastore. I have a single entity in a single project, and I want to retrieve that entity with a get
query. As far as I can tell I'm following the documentation, but the query is taking 80 seconds to return. There is something suspicious here, because it is taking almost exactly 80 seconds every time. Is there a buffer that I need to flush somewhere?
I've tested the same query with the Python library and don't experience this behavior. This makes me think that it could just be basic javascript mistake, but I can't figure out what it might be.
Here is the final bit where the query is made:
console.log('before');
datastore.get(key, (err, entity) => {
console.log('after');
console.log(entity);
});
The entity gets logged as expected, just 80 seconds later.
via Bennett Rogers
No comments:
Post a Comment