I have the following simple query:
client = datastore.Client('fmy_project')
query = client.query(kind='kind1')
query.add_filter('x', '=','y')
for row in query.fetch():
#process the row and save to file
It takes me for 100 rows 5 seconds to fetch the results when working from a local machine. This is awfully slow.
when i make strace on the python process i get many rows of:
recvmsg(9, 0x7ffffc9ee9f0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=8, events=POLLIN}, {fd=9, events=POLLIN}], 2, 200) = 0 (Timeout)
Is there a way to say datastore to fetch everything in one go or make a certain other optimization?
I googled and did not find any related option