You are currently browsing legacy 5.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: How to Get Detailed Database Statistics

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


public GetDetailedStatisticsOperation()
Return Value
DetailedDatabaseStatistics Detailed database statistics


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;