Using the In-Memory storage

  • Navigate to your Vonk working directory

  • In a text editor open appsettings.json to find the Repository setting:

    "Repository": "Memory",
    
  • If it is not already set to Memory, do so now.

  • You can set SimulateTransactions to “true” if you want to experiment with FHIR transactions. The In-Memory implementation does not support real transactions, so in case of an error already processed entries will NOT be rolled back:

    "MemoryOptions": {
        "SimulateTransactions": "true"
    },
    

Using the In-Memory storage for the Administration API database

This works the same as with the normal Vonk database, except that you put the settings within the Administration section

E.g.:

"Administration": {
    "Repository": "Memory",
    "MemoryOptions": {
        "SimulateTransactions": "false"
    }
}

Warning

Using the In-Memory storage for the administration layer will cause Vonk to load the specification files on each startup. This takes several minutes, and Vonk will respond with a ‘423 - Locked’ error to all requests during that time. As of version 0.7.1 we have implemented support for SQLite, which we recommend to use instead of the In-Memory storage. See Prefer SQLite for Vonk Administration for more information.