Skip to content
Merged
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
27 changes: 17 additions & 10 deletions modules/ROOT/pages/database-internals/store-formats.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,23 @@ neo4j-admin database import full ... --format=block blockdb
// CREATE DATABASE blockdb OPTIONS {storeFormat: 'block'}
// ----

=== Changing the format of existing databases
=== Changing the store format of existing databases

Changing the store format is possible by re-writing all data in the new format using one of the following options:
Changing the store format is possible by re-writing all data in the new format.
Therefore, it requires that:

* The database is offline.
* There is enough disk space for both old and new copies of the database.
* The graph fits within the new <<store-formats-entity-limits, format's entity limits>>.

[NOTE]
====
Changing the store format can be a time-consuming operation, depending on the size and complexity of the data in the database.
Performance heavily depends on the speed of the disk and the amount of available memory.
====

. Stop the database using the Cypher command `STOP DATABASE mydb`.
. Change the store format of the stopped database using one of the following options:

* Migrate an existing database using xref:tools/neo4j-admin/migrate-database.adoc[`neo4j-admin database migrate`] command.
For example:
Expand All @@ -69,14 +83,7 @@ For example:
----
neo4j-admin database copy --to-format="block" mydb blockdb
----

Changing the store format requires that:

* The database is offline.
* There is enough disk space for both old and new copies of the database.
* The graph fits within the new <<store-formats-entity-limits, format's entity limits>>.

Changing store format can be a time-consuming operation, depending on the size and complexity of the data in the database. Performance heavily depends on the speed of the disk and the amount of available memory.
. After the successful completion, start the database using the Cypher command `START DATABASE mydb`.

=== Verify the store format

Expand Down