You are currently browsing legacy 4.0 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

Storage: Directory Structure

RavenDB Data

RavenDB keeps all data in a location specified in DataDir setting. The structure of RavenDB data directories are as follows:

  • {DataDir}
    • Databases
      • <database-name>
        • Confguration
          • Journals
          • Temp
        • Indexes
          • <index-name>
            • Journals
            • Temp
          • ...more indexes...
        • Journals
        • Temp
      • ...more databases...
    • System
      • Journals
      • Temp

The main directory has a Databases folder, which contains subdirectories per each database, and a System folder where server-wide data are stored (e.g. database records, cluster data).

The database is composed of such data items as documents, indexes, and configuration. Each of them is a separate Voron storage environment. The data is persisted in a Raven.voron file and .journal files which are located in the Journals directory. In addition, temporary files are put into the Temp folder.