Skip to content

Commit

Permalink
Docs: mention performance impact of notification filtering.
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude authored and fbiville committed May 23, 2023
1 parent 5074923 commit fa344be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neo4j/config/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions neo4j/session_with_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fa344be

Please sign in to comment.