You are currently browsing legacy 4.1 version of documentation. Click here to switch to the newest 4.2 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.

Syntax

public GetDetailedStatisticsOperation();

Return Value
DetailedDatabaseStatistics Detailed database statistics

Example

DetailedDatabaseStatistics stats
    = store.maintenance().send(new GetDetailedStatisticsOperation());
long countOfDocuments = stats.getCountOfDocuments();
int countOfIndexes = stats.getCountOfIndexes();
long countOfCompareExchange = stats.getCountOfCompareExchange();
long countOfIdentities = stats.getCountOfIdentities();
boolean stale = stats.getIndexes()[0].isStale();