Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

ns: string

Namespace

count: number

Number of documents

size: number

Collection size in bytes

avgObjSize: number

Average object size in bytes

storageSize: number

(Pre)allocated space for the collection in bytes

numExtents: number

Number of extents (contiguously allocated chunks of datafile space)

nindexes: number

Number of indexes

lastExtentSize: number

Size of the most recently created extent in bytes

paddingFactor: number

Padding can speed up updates if documents grow

userFlags?: number

A number that indicates the user-set flags on the collection. userFlags only appears when using the mmapv1 storage engine

totalIndexSize: number

Total index size in bytes

indexSizes: { _id_: number }

Size of specific indexes in bytes

Type declaration

  • [index: string]: number
  • _id_: number
capped: boolean

true if the collection is capped

max: number

The maximum number of documents that may be present in a capped collection

maxSize: number

The maximum size of a capped collection

wiredTiger?: WiredTigerData

This document contains data reported directly by the WiredTiger engine and other data for internal diagnostic use

indexDetails?: any

The fields in this document are the names of the indexes, while the values themselves are documents that contain statistics for the index provided by the storage engine

ok: number
freeStorageSize?: number

The amount of storage available for reuse. The scale argument affects this value.

indexBuilds?: number

An array that contains the names of the indexes that are currently being built on the collection

totalSize: number

The sum of the storageSize and totalIndexSize. The scale argument affects this value

scaleFactor: number

The scale value used by the command.

Generated using TypeDoc