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