MongoLink`
MongoLink`

MongoCursorSetBatchSize

MongoCursorSetBatchSize[MongoCursor[],size]

sets the number of documents MongoCursor[] will return as specified by size.

Details

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Connect to a MongoDB server running locally:

In[1]:=
Click for copyable input
Out[1]=

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

In[1]:=
Click for copyable input
Out[1]=

Find all of the documents in the collection:

In[1]:=
Click for copyable input
Out[1]=

Find the batch size of the cursor:

In[1]:=
Click for copyable input
Out[1]=

Set the batch size to 100:

In[1]:=
Click for copyable input

Find the updated batch size of the cursor:

In[1]:=
Click for copyable input
Out[1]=