High latency while using firestore in golang.

23 views
Skip to first unread message

satyam shubham

unread,
Jan 1, 2021, 9:06:38 AM1/1/21
to Google Cloud Filestore Discuss
Hello everyone, 

I am facing issues of high latency on fire store while using it with golang. I have asked about this on stackoverflow and raised an issue on github. Can someone please help me with this.

George Suceveanu

unread,
Jan 1, 2021, 2:06:53 PM1/1/21
to Google Cloud Filestore Discuss
Your "Golang is giving high latency for firestore reads writes" posting in GitHub, provides 2 code samples that are meant to be equivalent, the one written in Go, the other in NodeJS. They need to do the same thing, for the sake of latency values comparison.  It appears, though, that these 2 samples are not equivalent, as the NodeJS one contains an extra "where" clause, namely: "where('phoneNumber', '==', '+919113348990')". If this is the case, they won't run the same way, as less data is expected to be retrieved by the query in NodeJS with the "where" clause. This being so, latency is expected to be smaller too. 

You may test if the retrieved data volume is at the root of the issue by using a "limit" clause. An example of a data read operation is given in the "Read data" sub-chapter of the "Get started with Cloud Firestore" page.  

satyam shubham

unread,
Jan 1, 2021, 6:06:04 PM1/1/21
to George Suceveanu, Google Cloud Filestore Discuss
Hey,

Sorry for the wrong snippet. But even when I remove the where clause from node code, I get a very low latency(<10ms) as compared to go (>500ms). Moreover my collection has currently only 1 document. 

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Cloud Filestore Discussion Google Group (google-cloud-fi...@googlegroups.com) to participate in discussions with other members of the Cloud Filestore community and the Cloud Filestore Team.
---
You received this message because you are subscribed to the Google Groups "Google Cloud Filestore Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-filestor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-filestore-discuss/2ce48f34-4161-4412-bd53-8ca96a90cfc5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages