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.
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?