From 0ecf344ba1484f6962fdfd4063caed1bf82ea6eb Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Mon, 20 Jan 2025 10:41:06 +0000 Subject: [PATCH 1/3] Document executionPlanCacheKeyHash and executableQueryCacheHit --- modules/ROOT/pages/monitoring/logging.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/ROOT/pages/monitoring/logging.adoc b/modules/ROOT/pages/monitoring/logging.adoc index e50bccdfd..9687e69f8 100644 --- a/modules/ROOT/pages/monitoring/logging.adoc +++ b/modules/ROOT/pages/monitoring/logging.adoc @@ -1197,6 +1197,7 @@ If the type of the log entry is `query`, these additional fields are available: | id | The query ID. +The ID is incremental, starting from 1 and resetting upon every Neo4j restart. Included when xref:configuration/configuration-settings.adoc#config_db.logs.query.enabled[`db.logs.query.enabled`] is `VERBOSE`. | elapsedTimeMs @@ -1261,6 +1262,16 @@ See <> for details on the contents | The query plan. Included when xref:configuration/configuration-settings.adoc#config_db.logs.query.plan_description_enabled[`db.logs.query.plan_description_enabled`] is `true`. +| executionPlanCacheKeyHash +| The 32-bit hash of the cache key used to cache the execution plan. +It is a fixed-length 8-character string of a hex-encoded integer value. +Enabled by default only in the JSON format. +If multiple query executions use the same cached execution plan, their hashes should match. +For `event=start`, the value is 000000. + +| executableQueryCacheHit +| Whether the query was executed using a cached execution plan. + |=== If the type of the log entry is `transaction`, the following additional fields are available: @@ -1286,6 +1297,7 @@ Either same as `authenticatedUser` or an impersonated user. | transactionId | ID of the transaction. + |=== [[gql-error-information]] From ee5ae7f7aea13925201867b14fa9edc848b40843 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 22 Jan 2025 10:48:47 +0000 Subject: [PATCH 2/3] Update modules/ROOT/pages/monitoring/logging.adoc Co-authored-by: Henrik Nyman --- modules/ROOT/pages/monitoring/logging.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/monitoring/logging.adoc b/modules/ROOT/pages/monitoring/logging.adoc index 9687e69f8..82103a279 100644 --- a/modules/ROOT/pages/monitoring/logging.adoc +++ b/modules/ROOT/pages/monitoring/logging.adoc @@ -1267,7 +1267,7 @@ Included when xref:configuration/configuration-settings.adoc#config_db.logs.quer It is a fixed-length 8-character string of a hex-encoded integer value. Enabled by default only in the JSON format. If multiple query executions use the same cached execution plan, their hashes should match. -For `event=start`, the value is 000000. +For `event=start`, the value is `00000000`. | executableQueryCacheHit | Whether the query was executed using a cached execution plan. From c6594dc08d74ce47f4d85313ea8b2f3671d2e425 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 22 Jan 2025 10:48:54 +0000 Subject: [PATCH 3/3] Update modules/ROOT/pages/monitoring/logging.adoc Co-authored-by: Henrik Nyman --- modules/ROOT/pages/monitoring/logging.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/monitoring/logging.adoc b/modules/ROOT/pages/monitoring/logging.adoc index 82103a279..530c4d7f5 100644 --- a/modules/ROOT/pages/monitoring/logging.adoc +++ b/modules/ROOT/pages/monitoring/logging.adoc @@ -1270,7 +1270,7 @@ If multiple query executions use the same cached execution plan, their hashes sh For `event=start`, the value is `00000000`. | executableQueryCacheHit -| Whether the query was executed using a cached execution plan. +| Whether the query string matched a cached execution plan. |===