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
DetailedDatabaseStatistics Detailed 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;