0
votes

Number of entries is a little more than 337k, however queries to fetch even just a single entry is taking anywhere from 600-1500ms. That seems fairly high to me. Is that normal or am I doing something wrong?

The queries are made from a GAE instance in us central using a very simple Go script. Here's what dashboard's telling me: http://take.ms/gpsoZ

Code is at: http://play.golang.org/p/oFjmBKfXgA

1
No, this is not normal. If you post your code, maybe someone can suggest an optimization. - Andrei Volgin
@AndreiVolgin updated question to have code. What sort of latency do you get usually? - sent-hil
50-150ms depending on a query. - Andrei Volgin
Do you access it from a gae instance? If so, which datacenter was it spun in? - sent-hil
If you're on appengine, there doesn't seem a good reason to be using the cloud-datastore api rather than appengine/datastore: cloud.google.com/appengine/docs/go/datastore - Greg

1 Answers

3
votes

As Greg pointed out, if you're on the App Engine, using Cloud Datastore API might not be the way to go. Rather, use the appengine datastore directly