Best way to do a bulk dump from GoLang

I am using golang to bring an entire bucket down to my host, I havnt really seen a “get all docs” example anywhere. I was wondering whats the best method to do this? Is the N1QL command the best method?

Hey @fnsnoop,

Using a N1QL query would likely be the most performant answer. Unfortunately neither the N1QL or View APIs in the Go library are capable of doing individual row streaming at the moment, this means that you may need to do individual queries to select a subset of the results that can fit in memory at once.

Cheers, Brett