|
|
node and relationships-ids in total and in use |
|
|
store information such as kernel version, start time, read-only, database-name, store-log-version etc. |
|
|
store size information for the different types of stores |
|
|
number of transactions total,opened,committed,concurrent,rolled-back,last-tx-id |
|
|
db locking information such as avertedDeadLocks, lockCount, contendedLockCount and contendedLocks etc. (enterprise) |
These procedures manage the UUID Handler Lifecycle. The UUID handler is a transaction event handler that automatically adds the UUID property to a provided label and for the provided property name. Please check the following documentation to an in-depth description.
Enable apoc.uuid.enabled=true in $NEO4J_HOME/config/neo4j.conf first.
|
|
description |
|
|
it will add the uuid transaction handler
for the provided |
|
|
remove previously added uuid handler and returns uuid information. All the existing uuid properties are left as-is |
|
|
removes all previously added uuid handlers and returns uuids information. All the existing uuid properties are left as-is |
|
|
provides a list of all the uuid handlers installed with the related configuration |
|
config |
type |
description |
|
addToExistingNodes |
Boolean (default: true) |
when installed, for the label provided, adds the UUID to the nodes already existing in your graph |
|
uuidProperty |
String (default: uuid) |
the name of the UUID field |
First create a Constraint for the Label and the Property, if you try to add a uuid an error occured.
CREATE CONSTRAINT ON (person:Person) ASSERT person.uuid IS UNIQUEAdd the uuid:
CALL apoc.uuid.install('Person') YIELD label RETURN labelThe result is:
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| label | installed | properties | batchComputationResult |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "Person" | true | {uuidProperty -> "uuid", addToExistingNodes -> true} | {wasTerminated -> false, count -> 10, batches -> 1, successes -> 1, failedOps -> 0, timeTaken -> 0, operationErrors -> {}, failedBatches -> 0} |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+The result is Node Person have 2 property:

Get all the uuid installed, call the procedure as:
call apoc.uuid.list() yield label, installed return label, installedThe result is:
+---------------------------------------------------------------------------------+
| label | installed | properties |
+---------------------------------------------------------------------------------+
| "Person" | true | {uuidProperty -> "uuid", addToExistingNodes -> true} |
+---------------------------------------------------------------------------------+Remove the uuid installed call the procedure as:
call apoc.uuid.remove('Person') yield label return labelThe result is:
+---------------------------------------------------------------------------------+
| label | installed | properties |
+---------------------------------------------------------------------------------+
| "Person" | false | {uuidProperty -> "uuid", addToExistingNodes -> true} |
+---------------------------------------------------------------------------------+
1 rowYou can also remove all the uuid installed call the procedure as:
call apoc.uuid.removeAll() yield label return labelThe result is:
+---------------------------------------------------------------------------------+
| label | installed | properties |
+---------------------------------------------------------------------------------+
| "Person" | false | {uuidProperty -> "uuid", addToExistingNodes -> true} |
+---------------------------------------------------------------------------------+