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

Method numIndexPartitions

db/database.go:2011–2016  ·  view source on GitHub ↗

numIndexPartitions returns the number of index partitions to use for the database's indexes.

()

Source from the content-addressed store, hash-verified

2009
2010// numIndexPartitions returns the number of index partitions to use for the database's indexes.
2011func (context *DatabaseContext) numIndexPartitions() uint32 {
2012 if context.Options.NumIndexPartitions != nil {
2013 return *context.Options.NumIndexPartitions
2014 }
2015 return DefaultNumIndexPartitions
2016}
2017
2018func (context *DatabaseContext) UseViews() bool {
2019 return context.Options.UseViews

Callers 6

QueryPrincipalsMethod · 0.95
BuildUsersQueryMethod · 0.95
BuildRolesQueryMethod · 0.95
QueryAllRolesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected