Skip to content

Commit 2b5466b

Browse files
committed
Removed session pool mention from documentation comments
1 parent 9a1e3b8 commit 2b5466b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/v1/driver.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ class Driver {
175175
}
176176

177177
/**
178-
* Acquire a session to communicate with the database. The driver maintains
179-
* a pool of sessions, so calling this method is normally cheap because you
180-
* will be pulling a session out of the common pool.
178+
* Acquire a session to communicate with the database. The session will
179+
* borrow connections from the underlying connection pool as required and
180+
* should be considered lightweight and disposable.
181181
*
182182
* This comes with some responsibility - make sure you always call
183183
* {@link close} when you are done using a session, and likewise,
184184
* make sure you don't close your session before you are done using it. Once
185-
* it is returned to the pool, the session will be reset to a clean state and
186-
* made available for others to use.
185+
* it is closed, the underlying connection will be released to the connection
186+
* pool and made available for others to use.
187187
*
188188
* @param {string} [mode=WRITE] the access mode of this session, allowed values are {@link READ} and {@link WRITE}.
189189
* @param {string|string[]} [bookmarkOrBookmarks=null] the initial reference or references to some previous

0 commit comments

Comments
 (0)