Skip to content

Snapshot performance improvements documentation #1265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: memgraph-3-3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pages/fundamentals/data-durability.mdx
Original file line number Diff line number Diff line change
@@ -114,6 +114,10 @@ Alternatively, you can make one directly by running the following query:
CREATE SNAPSHOT;
```

<Callout type="info">
If another snapshot is already being created or no committed writes to the database have been made since the last snapshot this query will fail with an error.
</Callout>

By default, snapshot files are saved inside the `var/lib/memgraph/snapshots` directory.

To query which snapshots currently exist in the data directory, execute:
@@ -153,6 +157,11 @@ background thread will pause and no snapshots will be created as long as that
mode is active. The job will continue with the last defined interval when the
storage mode is changed to `IN_MEMORY_TRANSACTIONAL` storage mode.

<Callout type="info">
The periodic snapshot will be skipped if another snapshot is in progress or no new writes have been committed since the last snapshot.
If the periodic snapshot is skipped it will be logged on INFO level.
</Callout>

<Callout type="warning">
Snapshots and WAL files are presently not compatible between Memgraph versions.
</Callout>