Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CollStats

Hierarchy

Index

Properties

avgObjSize

avgObjSize: number

Average object size in bytes

capped

capped: boolean

true if the collection is capped

count

count: number

Number of documents

Optional freeStorageSize

freeStorageSize?: number

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

Optional indexBuilds

indexBuilds?: number

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

Optional indexDetails

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

indexSizes

indexSizes: { _id_: number }

Size of specific indexes in bytes

Type declaration

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

lastExtentSize

lastExtentSize: number

Size of the most recently created extent in bytes

max

max: number

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

maxSize

maxSize: number

The maximum size of a capped collection

nindexes

nindexes: number

Number of indexes

ns

ns: string

Namespace

numExtents

numExtents: number

Number of extents (contiguously allocated chunks of datafile space)

ok

ok: number

paddingFactor

paddingFactor: number

Padding can speed up updates if documents grow

scaleFactor

scaleFactor: number

The scale value used by the command.

size

size: number

Collection size in bytes

storageSize

storageSize: number

(Pre)allocated space for the collection in bytes

totalIndexSize

totalIndexSize: number

Total index size in bytes

totalSize

totalSize: number

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

Optional userFlags

userFlags?: number

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

Optional wiredTiger

wiredTiger?: WiredTigerData

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

Generated using TypeDoc