Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 888 Bytes

dbStats.md

File metadata and controls

23 lines (17 loc) · 888 Bytes
title dbStats
description Return statistics for the current logical DocumentDB database.
type commands
category diagnostic

dbStats

Returns statistics for the current logical database.

db.stats({ scale: 1024 })
Parameter Description
dbStats (Required) A command marker, conventionally 1; the target database is supplied by the connection's $db.
scale (Optional) A number specifying the divisor for applicable byte-size fields; defaults to 1. The backend truncates numeric values to an integer.

null or undefined scale uses 1. The default wire adapter forwards only the database and scale, not a freeStorage option.

See wire protocol and common fields. Source: gateway processor/data_management.rs, process_db_stats, and backend pg_documentdb/src/commands/db_stats.c.