Skip to content

Commit f8ec06b

Browse files
authored
Docs: mention performance impact of notification filtering. (#1086)
1 parent f212ff1 commit f8ec06b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/core/src/driver.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ class SessionConfig {
268268
*
269269
*
270270
* Disabling notifications can be done by defining the minimum severity level to 'OFF'.
271-
* Default values can be use by omitting the configuration.
271+
* At driver level, when omitted, uses the server's default.
272+
* At session level, when omitted, defaults to what filters have been configured at driver level.
273+
*
274+
* Disabling categories or severities allows the server to skip analysis for those, which can speed up query
275+
* execution.
272276
*
273277
* @example
274278
* // enabling warning notification, but disabling `HINT` and `DEPRECATION` notifications.

packages/neo4j-driver-deno/lib/core/driver.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ class SessionConfig {
268268
*
269269
*
270270
* Disabling notifications can be done by defining the minimum severity level to 'OFF'.
271-
* Default values can be use by omitting the configuration.
271+
* At driver level, when omitted, uses the server's default.
272+
* At session level, when omitted, defaults to what filters have been configured at driver level.
273+
*
274+
* Disabling categories or severities allows the server to skip analysis for those, which can speed up query
275+
* execution.
272276
*
273277
* @example
274278
* // enabling warning notification, but disabling `HINT` and `DEPRECATION` notifications.

0 commit comments

Comments
 (0)