N1QL-Profiling with Go Library


Is it possible to fetch the profiling data (f.e. ItemsIn etc) from the go library?
It seems that is possible to activate profiling with f.e.
To get statistics there is a rows.Metrics() which returns ExecutionTime etc. Is there something like a rows.Profile() to get the profiling data? My idea is to implement a “debug mode” for my queries, so I can easy see if a query is fully index covered or not.


Hi @gizmo74,
It looks like we don’t expose any means to get the profile on the result. I’ve just raised issue GOCBC-634 to have it added, it’ll be exposed as interface{}. It should be in the next release in a couple of weeks.

1 Like

Thanks :slight_smile: Cool that you’ll add that.