Skip to main content

Statistics: Stats View

The Stats view

Any user with read access to the database can open this view.
Stats menu > Stats view

The Stats view

  1. Stats
    Open the Stats menu.

  2. Stats
    Open the Stats view.

  3. Show detailed database & indexing stats
    Click to toggle on or off a detailed display of database and index statistics.

  4. Refresh
    Read the statistics again and update the display.

  5. Show raw output
    Open the JSON response of the /databases/<database name>/stats/essential endpoint in a new browser tab.

  6. General Database Stats

    CountDescription
    Documents CountThe number of documents in the database.
    Counters CountThe number of counter entries.
    Attachments CountThe number of attachments in the database.
    Indexes CountThe number of indexes defined in the database.
    Revisions CountThe number of revisions stored.
    Conflicts CountThe number of documents that are currently in conflict.
    Tombstones CountThe number of tombstones, the markers left behind by deleted documents.
    Time Series Segments CountThe number of segments that hold the database's time series entries.
    A segment holds consecutive entries of one time series and grows to 2 KB at most, so a new segment is added as entries accumulate, or once enough time has passed since the last entry.

Detailed Database Stats

The Detailed Database Stats table holds one column per cluster node in the database group, and one column per shard on a sharded database.

Detailed Database Stats

  1. Node columns
    The node the column's values were read from.
    On a sharded database the shard number is shown as well.

  2. Copy to clipboard
    Copy the node's full change vector.
    The badges next to the button show each change vector entry in a shortened form; hovering over a badge shows the full entries.

  3. Size On Disk
    Hovering over the value displays the sizes of the database's data files and temporary buffers.

    The Size On Disk details

  4. Attachments
    The overall number of attachments.
    When the same file is attached to several documents, RavenDB stores the file once and all these attachments point to the single stored copy, so fewer files are stored than the overall number of attachments.
    The row then adds two figures: the number of files stored locally, and the number of attachments kept in remote storage.

The rows are:

RowDescription
Database IDThe unique identifier of the database instance on this node. Each node generates an identifier of its own.
Database Change VectorThe database's current change vector, with one entry per node that has written to the database.
Size On DiskThe disk space the database occupies on this node, including its temporary buffers.
Last Document ETagThe ETag of the most recent document change on this node.
Last Database ETagThe most recent ETag on this node across the whole database, including changes to documents, tombstones, revisions, conflicts, and attachments.
ArchitectureThe architecture of the server process on this node, 64-bit or 32-bit.
DocumentsThe number of documents on this node.
CountersThe number of counter entries on this node.
IdentitiesThe number of identities the database has generated.
IndexesThe number of indexes defined in the database.
RevisionsThe number of revisions on this node.
ConflictsThe number of documents that are currently in conflict on this node.
AttachmentsThe number of attachments on this node.
Compare ExchangeThe number of compare exchange items.
Compare exchange items are stored cluster-wide, so the value is identical for all nodes.
TombstonesThe number of tombstones on this node.
Time Series SegmentsThe number of time series segments on this node.

Indexes Stats

This section shows the indexing counters of each index, node by node.
The indexes are grouped by type, map indexes first and map-reduce indexes later, and each index name links to the Indexing Performance view for that index.

The index tables

Indexes Stats

A row appears only when the index has something to report for it, so two indexes in the same group can show different rows.

The rows are:

RowDescription
StalenessA green check when the index has processed every document it needs to, or a Stale badge when some documents are not processed yet.
Node TagThe node the column's values were read from.
Shard #If the database is sharded: the shard the column's values were read from.
Entries CountThe number of entries the index currently holds. A single document can produce more than one entry.
Errors CountThe number of indexing errors stored for the index.
Map AttemptsThe number of documents the index tried to map.
Map SuccessesThe number of documents the index mapped successfully.
Map ErrorsThe number of documents whose mapping failed.
Map Reference AttemptsThe number of documents the index re-mapped because a document they reference had changed.
Shown for indexes that load related documents.
Map Reference SuccessesThe number of the re-mappings that succeeded.
Shown for indexes that load related documents.
Map Reference ErrorsThe number of the re-mappings that failed.
Mapped Per Second RateThe rate at which the index is currently mapping documents.
Shown while the rate exceeds one document per second.
Reduce AttemptsThe number of reduce operations the index attempted.
Shown for map-reduce indexes.
Reduce SuccessesThe number of reduce operations that succeeded.
Shown for map-reduce indexes.
Reduce ErrorsThe number of reduce operations that failed.
Reduced Per Second RateThe rate at which the index is currently reducing.
Shown while the rate exceeds one operation per second.

Staleness and errors

An index with errors

  1. Staleness
    A Stale badge means the index still has documents to process.
    Click the badge to open the list of reasons the index is stale.

  2. Errors Count
    The number of errors stored for the index.
    RavenDB keeps the 500 most recent errors of each index, so the count stops at 500.

  3. Map Errors
    The number of documents whose mapping failed.
    This counter is not capped, so an index that has failed on more than 500 documents shows a higher Map Errors than Errors Count.

To read the errors themselves, see Debugging index errors.

An index that loads related documents

  1. Map Reference Attempts and Map Reference Successes
    An index can use LoadDocument to read data from documents related to the document being indexed.
    When a related document changes, the index re-maps every document that references the changed document.
    Map Reference Attempts counts the documents re-mapped this way, and Map Reference Successes counts the documents whose re-mapping completed.

  2. Referenced collections
    The collections the index loads related documents from.

Learn how to define an index that loads related documents in Indexing related documents.

In this article