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
Is it OK to define a collection variable once (like col := s.DB("sample-db").Col("sample")) and reuse it (from a single goroutine, no concurrent access)?
Instead of calling s.DB("sample-db").Col("sample") every time?
If so, it would be helpful to change front page samples, this way.
The text was updated successfully, but these errors were encountered:
Is it OK to define a collection variable once (like
col := s.DB("sample-db").Col("sample")
) and reuse it (from a single goroutine, no concurrent access)?Instead of calling
s.DB("sample-db").Col("sample")
every time?The text was updated successfully, but these errors were encountered: