MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / SlowQueryLog

Function SlowQueryLog

base/collection_n1ql_common.go:473–477  ·  view source on GitHub ↗
(ctx context.Context, startTime time.Time, threshold time.Duration, messageFormat string, args ...interface{})

Source from the content-addressed store, hash-verified

471}
472
473func SlowQueryLog(ctx context.Context, startTime time.Time, threshold time.Duration, messageFormat string, args ...interface{}) {
474 if elapsed := time.Now().Sub(startTime); elapsed > threshold {
475 InfofCtx(ctx, KeyQuery, messageFormat+" took "+elapsed.String(), args...)
476 }
477}
478
479// Converts to a format like `value1`,`value2` when quote=`
480func StringSliceToN1QLArray(values []string, quote string) string {

Callers 2

N1QLQueryWithStatsFunction · 0.92
ViewQueryWithStatsMethod · 0.92

Calls 2

InfofCtxFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected