Skip to main content

Operations: How to Get Detailed Database Statistics

GetDetailedStatisticsOperation will retrieve the same database statistics as GetStatisticsOperation plus total count of identities and counters.

Syntax

public GetDetailedStatisticsOperation()
Return Value
DetailedDatabaseStatisticsDetailed database statistics

Example

DetailedDatabaseStatistics stats = store.Maintenance.Send(new GetDetailedStatisticsOperation());
long countOfDocuments = stats.CountOfDocuments;
long countOfIndexes = stats.CountOfIndexes;
long countOfCompareExchange = stats.CountOfCompareExchange;
long countOfIdentities = stats.CountOfIdentities;
bool isStale = stats.Indexes[0].IsStale;