diegogub / aranGO

Golang driver for ArangoDB
Apache License 2.0
125 stars 31 forks source link

Question: Reusing Collection #45

Open dc0d opened 7 years ago

dc0d commented 7 years ago

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?

diegogub commented 7 years ago

@dc0d yea, it's totally fine. I will check about goroutine use. but one single goroutine should be fine..