apoc.warmup.run
This procedure is not considered safe to run from multiple threads. It is therefore not supported by the parallel runtime (introduced in Neo4j 5.13). For more information, see the Cypher Manual → Parallel runtime. |
Syntax |
|
||
Description |
Loads all |
||
Input arguments |
Name |
Type |
Description |
|
|
loadProperties = false :: BOOLEAN The default is: |
|
|
|
loadDynamicProperties = false :: BOOLEAN The default is: |
|
|
|
loadIndexes = false :: BOOLEAN The default is: |
|
Return arguments |
Name |
Type |
Description |
|
|
pageSize :: INTEGER |
|
|
|
totalTime :: INTEGER |
|
|
|
transactionWasTerminated :: BOOLEAN |
|
|
|
nodesPerPage :: INTEGER |
|
|
|
nodesTotal :: INTEGER |
|
|
|
nodePages :: INTEGER |
|
|
|
nodesTime :: INTEGER |
|
|
|
relsPerPage :: INTEGER |
|
|
|
relsTotal :: INTEGER |
|
|
|
relPages :: INTEGER |
|
|
|
relsTime :: INTEGER |
|
|
|
relGroupsPerPage :: INTEGER |
|
|
|
relGroupsTotal :: INTEGER |
|
|
|
relGroupPages :: INTEGER |
|
|
|
relGroupsTime :: INTEGER |
|
|
|
propertiesLoaded :: BOOLEAN |
|
|
|
dynamicPropertiesLoaded :: BOOLEAN |
|
|
|
propsPerPage :: INTEGER |
|
|
|
propRecordsTotal :: INTEGER |
|
|
|
propPages :: INTEGER |
|
|
|
propsTime :: INTEGER |
|
|
|
stringPropsPerPage :: INTEGER |
|
|
|
stringPropRecordsTotal :: INTEGER |
|
|
|
stringPropPages :: INTEGER |
|
|
|
stringPropsTime :: INTEGER |
|
|
|
arrayPropsPerPage :: INTEGER |
|
|
|
arrayPropRecordsTotal :: INTEGER |
|
|
|
arrayPropPages :: INTEGER |
|
|
|
arrayPropsTime :: INTEGER |
|
|
|
indexesLoaded :: BOOLEAN |
|
|
|
indexPages :: INTEGER |
|
|
|
indexTime :: INTEGER |
Usage Examples
The examples in this section are based on the following sample graph:
MERGE (michael:Person {name: "Michael"})
WITH michael
CALL {
WITH michael
UNWIND range(0, 10000) AS id
MERGE (p:Person {name: "Person" + id})
MERGE (michael)-[:KNOWS]-(p)
RETURN count(*) AS friends
}
RETURN friends;
friends |
---|
10001 |
CALL apoc.warmup.run()
YIELD nodesTotal, nodePages, relsTotal, relPages, propPages, propertiesLoaded
RETURN nodesTotal, nodePages, relsTotal, relPages, propPages, propertiesLoaded;
nodesTotal | nodePages | relsTotal | relPages | propPages | propertiesLoaded |
---|---|---|---|---|---|
10002 |
184 |
10001 |
417 |
503 |
FALSE |
CALL apoc.warmup.run(true, true, false)
YIELD nodesTotal, nodePages, relsTotal, relPages, propPages, propertiesLoaded
RETURN nodesTotal, nodePages, relsTotal, relPages, propPages, propertiesLoaded;
nodesTotal | nodePages | relsTotal | relPages | propPages | propertiesLoaded |
---|---|---|---|---|---|
10002 |
184 |
10001 |
417 |
503 |
TRUE |
This procedure can only be used with a Database record format of
|