Skip to content

Commit 24042c1

Browse files
p-mongop
andauthored
RUBY-2588 Unpin sessions after all abortTransaction attempts (#2218)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent f0039fa commit 24042c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/tutorials/ruby-driver-crud-operations.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ when querying and their corresponding methods as examples.
200200

201201
* - Option
202202
- Description
203+
* - ``allow_disk_use``
204+
- When set to true, the server can write temporary data to disk while
205+
executing the find operation. This option is only available on MongoDB
206+
server versions 4.4 and newer.
203207
* - ``allow_partial_results``
204208
- For use with sharded clusters. If a shard is down, allows the query
205209
to return results from the shards that are up, potentially only getting
@@ -250,6 +254,8 @@ when querying and their corresponding methods as examples.
250254
* - ``max_scan(Integer)``
251255
- Sets the maximum number of documents to scan if a full collection scan
252256
would be performed. Deprecated as of MongoDB server version 4.0.
257+
* - ``max_time_ms(Integer)``
258+
- The maximum amount of time to allow the query to run, in milliseconds.
253259
* - ``no_cursor_timeout``
254260
- MongoDB automatically closes inactive cursors after a period of 10
255261
minutes. Call this for cursors to remain open indefinitely on the server.
@@ -267,6 +273,8 @@ when querying and their corresponding methods as examples.
267273

268274
client[:artists].find.read(:mode => :secondary_preferred)
269275

276+
* - ``session(Session)``
277+
- The session to use.
270278
* - ``show_disk_loc(Boolean)``
271279
- Tells the results to also include the location of the documents on disk.
272280
* - ``skip(Integer)``
@@ -280,6 +288,7 @@ when querying and their corresponding methods as examples.
280288

281289
client[:artists].find.sort(:name => -1)
282290

291+
283292
Additional Query Operations
284293
---------------------------
285294

0 commit comments

Comments
 (0)