Creating sharded property databasesEnterprise EditionNot available on AuraIntroduced in 2025.12
You can create a sharded property database using the Cypher command CREATE DATABASE (requires Cypher 25, introduced alongside Neo4j 2025.06.0).
For details on configuring the Cypher version, see Configure the Cypher default version.
Syntax
| Command | Syntax |
|---|---|
|
|
When creating a sharded property database, the following are created:
-
A virtual sharded property database
<name>. -
A single graph shard with the name
<name>-g000. -
A number of property shards with the name
<name>-p<index>, where<index>ranges from000to999. The count property inSET PROPERTY SHARDSspecifies the number of property shards.
|
|
Options
The CREATE DATABASE command can have a map of options, e.g., OPTIONS {key: 'value'}.
For sharded databases, only the options seedURI, seedConfig, seedSourceDatabase, seedRestoreUntil, and txLogEnrichment are supported.
For details see Create databases → Options.
|
The folder notation for When specifying each artifact manually the key of the map is the name of the shard, where the graph shard name = |
For examples on how to create a sharded property database, see Online ingestion.
Default numbers for topology
The sharded property databases use the Neo4j cluster topology.
Therefore, you need to consider how the following settings will affect the creation of your sharded property database.
initial.dbms.default_primaries_count and initial.dbms.default_secondaries_count affect only the graph shard
| Configuration setting | Default value | Valid values | Description |
|---|---|---|---|
|
|
The initial default number of primaries for the standard databases. Initialized at the first DBMS startup. If the user does not specify the number of primaries in |
|
|
|
The initial default number of secondaries for the standard databases. Initialized at the first DBMS startup. If the user does not specify the number of secondaries in |
|
|
|
The initial default number of replicas of property shards. Initialized at the first DBMS startup.
If the user does not specify the number replicas of property shards in |