From fa344bed9615aa3752c7b541dc7d10807c91c2ef Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Mon, 22 May 2023 13:55:58 +0200 Subject: [PATCH] Docs: mention performance impact of notification filtering. --- neo4j/config/driver.go | 2 ++ neo4j/session_with_context.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/neo4j/config/driver.go b/neo4j/config/driver.go index dd6d2537..fc2f91d7 100644 --- a/neo4j/config/driver.go +++ b/neo4j/config/driver.go @@ -140,9 +140,11 @@ type Config struct { FetchSize int // NotificationsMinSeverity defines the minimum severity level of notifications the server should send. // By default, the server's settings are used. + // Disabling severities allows the server to skip analysis for those, which can speed up query execution. NotificationsMinSeverity notifications.NotificationMinimumSeverityLevel // NotificationsDisabledCategories defines the categories of notifications the server should not send. // By default, the server's settings are used. + // Disabling categories allows the server to skip analysis for those, which can speed up query execution. NotificationsDisabledCategories notifications.NotificationDisabledCategories } diff --git a/neo4j/session_with_context.go b/neo4j/session_with_context.go index b77c685b..2c7fb67c 100644 --- a/neo4j/session_with_context.go +++ b/neo4j/session_with_context.go @@ -157,10 +157,12 @@ type SessionConfig struct { // NotificationsMinSeverity defines the minimum severity level of notifications the server should send. // By default, the driver's settings are used. // Else, this option overrides the driver's settings. + // Disabling severities allows the server to skip analysis for those, which can speed up query execution. NotificationsMinSeverity notifications.NotificationMinimumSeverityLevel // NotificationsDisabledCategories defines the categories of notifications the server should not send. // By default, the driver's settings are used. // Else, this option overrides the driver's settings. + // Disabling categories allows the server to skip analysis for those, which can speed up query execution. NotificationsDisabledCategories notifications.NotificationDisabledCategories // Auth is used to overwrite the authentication information for the session. // This requires the server to support re-authentication on the protocol level.