@@ -29,14 +29,6 @@ The code examples in this guide come from the `GridFSTour.java
2929<{+driver-source-gh+}/blob/master/driver-reactive-streams/src/examples/reactivestreams/gridfs/GridFSTour.java>`__
3030file in the driver source code GitHub repository.
3131
32- .. tip:: Timeout Setting
33-
34- You can use the client-side operation timeout (CSOT) setting to limit
35- the amount of time in which the server can finish GridFS operations.
36- To learn more about using this setting with GridFS, see the
37- :ref:`java-rs-csot-gridfs` section of the Limit Server Execution Time
38- guide.
39-
4032Prerequisites
4133-------------
4234
@@ -103,17 +95,25 @@ create ``GridFSBucket`` instances:
10395 // Create a gridFSBucket using the default bucket name "fs"
10496 GridFSBucket gridFSBucket = GridFSBuckets.create(myDatabase);
10597
98+ .. note::
99+
100+ GridFS automatically creates indexes on the ``files`` and ``chunks``
101+ collections when you upload data to the GridFS bucket.
102+
106103You can pass a bucket name to the ``GridFSBuckets.create()`` method:
107104
108105.. code-block:: java
109106
110107 // Create a gridFSBucket with a custom bucket name "files"
111108 GridFSBucket gridFSFilesBucket = GridFSBuckets.create(myDatabase, "files");
112109
113- .. note::
110+ .. tip:: Timeout Setting
114111
115- GridFS automatically creates indexes on the ``files`` and ``chunks``
116- collections when you upload data to the GridFS bucket.
112+ You can use the client-side operation timeout (CSOT) setting to limit
113+ the amount of time in which the server can finish GridFS operations.
114+ To learn more about using this setting with GridFS, see the
115+ :ref:`java-rs-csot-gridfs` section of the Limit Server Execution Time
116+ guide.
117117
118118Upload to GridFS
119119----------------
0 commit comments