@@ -29,14 +29,6 @@ The code examples in this guide come from the `GridFSTour.java
29
29
<{+driver-source-gh+}/blob/master/driver-reactive-streams/src/examples/reactivestreams/gridfs/GridFSTour.java>`__
30
30
file in the driver source code GitHub repository.
31
31
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
-
40
32
Prerequisites
41
33
-------------
42
34
@@ -103,17 +95,25 @@ create ``GridFSBucket`` instances:
103
95
// Create a gridFSBucket using the default bucket name "fs"
104
96
GridFSBucket gridFSBucket = GridFSBuckets.create(myDatabase);
105
97
98
+ .. note::
99
+
100
+ GridFS automatically creates indexes on the ``files`` and ``chunks``
101
+ collections when you upload data to the GridFS bucket.
102
+
106
103
You can pass a bucket name to the ``GridFSBuckets.create()`` method:
107
104
108
105
.. code-block:: java
109
106
110
107
// Create a gridFSBucket with a custom bucket name "files"
111
108
GridFSBucket gridFSFilesBucket = GridFSBuckets.create(myDatabase, "files");
112
109
113
- .. note::
110
+ .. tip:: Timeout Setting
114
111
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.
117
117
118
118
Upload to GridFS
119
119
----------------
0 commit comments