Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/src/main/sphinx/connector/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following configuration properties are available:
| `mongodb.write-concern` | The write concern |
| `mongodb.required-replica-set` | The required replica set name |
| `mongodb.cursor-batch-size` | The number of elements to return in a batch |
| `mongodb.allow-local-scheduling` | Assign MongoDB splits to a specific worker |

### `mongodb.connection-url`

Expand Down Expand Up @@ -203,6 +204,15 @@ Do not use a batch size of `1`.

This property is optional; the default is `0`.

### `mongodb.allow-local-scheduling`

Set the value of this property to `true` if Trino and MongoDB share the same
cluster, and specific MongoDB splits should be processed on the same worker and
MongoDB node. Note that a shared deployment is not recommended, and enabling
this property can lead to resource contention.

This property is optional, and defaults to false.

(table-definition-label)=

## Table definition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public boolean isAllowLocalScheduling()
}

@Config("mongodb.allow-local-scheduling")
@ConfigDescription("Assign mongo splits to host if worker and mongo share the same cluster")
@ConfigDescription("Assign MongoDB splits to a specific host if worker and MongoDB share the same cluster")
public MongoClientConfig setAllowLocalScheduling(boolean allowLocalScheduling)
{
this.allowLocalScheduling = allowLocalScheduling;
Expand Down