Display store information

You can use the neo4j-admin database info command to get the following information about the store format of a given database store:

  • The store format version.

  • When the store format version was introduced.

  • Whether the store format needs to be migrated to a newer version.

The neo4j-admin database info command is located in the bin directory.

Syntax

The neo4j-admin database info command should be invoked against an offline database store or a backup and has the following syntax:

neo4j-admin database info [-h] [--expand-commands]
                               [--verbose]
                               [--additional-config=<file>]
                               [--format=text|json]
                               [--from-path=<path>]
                               [<database>]

Options

The neo4j-admin database info command has the following options:

Table 1. Options
Name Possible values Description

-h, --help

Show this help message and exit.

--expand-commands

Allow command expansion in config value evaluation.

--verbose

Enable verbose output.

--additional-config

<file>

Configuration file with additional configuration.

--format

text or json

The format to use for the returned information. Default is text.

--from-path

<path>

Path to databases directory.

<database>

Name of the database to show info for. Can contain * and ? for globbing. Default is *.

Examples

Example 1. Invoke neo4j-admin database info against a database store
bin/neo4j-admin database info mygraph.db

Output:

Store format version:         record-aligned-1.1
Store format introduced in:   5.0.0
Example 2. Invoke neo4j-admin database info against all databases

The command can also be invoked against all databases, as follows:

neo4j-admin database info --from-path=<databases-directory>

bin/neo4j-admin database info data/databases

Output:

Database name:                 foo
Database in use:               false
Store format version:          record-aligned-1.1
Store format introduced in:    5.0.0
Last committed transaction id:2
Store needs recovery:          true

Database name:                 bar
Database in use:               true

When the command is invoked against several databases, if some are online they will simply report as in use and exclude all other information.

Example 3. Invoke neo4j-admin database info against a database and output JSON

If you are parsing the results of this command you may use the --format=json option to receive the output as JSON. All the same fields are included and all values are strings.

bin/neo4j-admin database info --from-path data/databases --format=json foo

Output:

{"databaseName":"foo",
"inUse":"false",
"storeFormat”:"record-aligned-1.1",
"storeFormatIntroduced”:"5.0.0",
"lastCommittedTransaction":"2",
"recoveryRequired":"true"}

Store formats and entity limits

The store formats are:

  • aligned

  • standard

  • high_limit Enterprise Edition

Aligned

Table 2. Store versions — aligned
Store Format Name Store Format Version Introduced in Unsupported from

ALIGNED_V5_0

record-aligned-1.1

5.0.0

ALIGNED_V4_3

AF4.3.0

4.3.0

5.0.0

ALIGNED_V4_1

AF4.1.a

4.1.0

5.0.0

Table 3. Store limits — aligned
Name Limit

Property keys

2^24 (16 777 216)

Nodes

2^35 (34 359 738 368)

Relationships

2^35 (34 359 738 368)

Properties

2^36 (68 719 476 736)

Labels

2^32 (4 294 967 296)

Relationship types

2^16 (65 536)

Relationship groups

2^35 (34 359 738 368)

Standard

Table 4. Store versions — standard
Store Format Name Store Format Version Introduced in Unsupported from

STANDARD_V5_0

record-standard-1.1

5.0.0

STANDARD_V4_3

SF4.3.0

4.3.0

5.0.0

STANDARD_V4_0

SF4.0.0

4.0.0

5.0.0

STANDARD_V3_4

v0.A.9

3.4.0

5.0.0

Table 5. Store limits — standard
Name Limit

Property keys

2^24 (16 777 216)

Nodes

2^35 (34 359 738 368)

Relationships

2^35 (34 359 738 368)

Properties

2^36 (68 719 476 736)

Labels

2^32 (4 294 967 296)

Relationship types

2^16 (65 536)

Relationship groups

2^35 (34 359 738 368)

High_limit

Table 6. Store versions — high_limit
Store Format Name Store Format Version Introduced in Unsupported from

HIGH_LIMIT_V5_0

record-high_limit-1.1

5.0.0

HIGH_LIMIT_V4_3_0

HL4.3.0

4.3.0

5.0.0

HIGH_LIMIT_V4_0_0

HL4.0.0

4.0.0

5.0.0

HIGH_LIMIT_V3_4_0

vE.H.4

3.4.0

5.0.0

HIGH_LIMIT_V3_2_0

vE.H.3

3.2.0

5.0.0

HIGH_LIMIT_V3_1_0

vE.H.2

3.1.0

5.0.0

HIGH_LIMIT_V3_0_6

vE.H.0b

3.0.6

5.0.0

HIGH_LIMIT_V3_0_0

vE.H.0

3.0.0

5.0.0

Table 7. Store limits — high_limit
Name Limit

Property keys

2^24 (16 777 216)

Nodes

2^50 (1 Quadrillion)

Relationships

2^50 (1 Quadrillion)

Properties

2^50 (1 Quadrillion)

Labels

2^32 (4 294 967 296)

Relationship types

2^24 (16 777 216)

Relationship groups

2^50 (1 Quadrillion)