Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `TransactionMode.ClusterWide` and call `SaveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `transactionMode: "ClusterWide"` and call `saveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ description: "Send multiple document commands in a single RavenDB batch request
sidebar_position: 0
supported_languages: ["csharp", "java", "nodejs"]
see_also:
- title: "Cluster Transaction - Overview"
link: "client-api/session/cluster-transaction/overview"
source: "docs"
path: "Client API > Session > Cluster Transaction"
- title: "Transaction Support"
link: "client-api/faq/transaction-support"
source: "docs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `TransactionMode.ClusterWide` and call `SaveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `transactionMode: "ClusterWide"` and call `saveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar_label: Send Multiple Commands
sidebar_position: 0
supported_languages: ["csharp", "java", "nodejs"]
see_also:
- title: "Cluster Transaction - Overview"
link: "client-api/session/cluster-transaction/overview"
source: "docs"
path: "Client API > Session > Cluster Transaction"
- title: "Transaction Support"
link: "client-api/faq/transaction-support"
source: "docs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `TransactionMode.ClusterWide` and call `SaveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `transactionMode: "ClusterWide"` and call `saveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar_label: Send Multiple Commands
sidebar_position: 0
supported_languages: ["csharp", "java", "nodejs"]
see_also:
- title: "Cluster Transaction - Overview"
link: "client-api/session/cluster-transaction/overview"
source: "docs"
path: "Client API > Session > Cluster Transaction"
- title: "Transaction Support"
link: "client-api/faq/transaction-support"
source: "docs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `TransactionMode.ClusterWide` and call `SaveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ import CodeBlock from '@theme/CodeBlock';

<Admonition type="note" title="">

* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to the server.
* Use the low-level `SingleNodeBatchCommand` to send **multiple commands** in a **single request** to a cluster node.
This reduces the number of remote calls and allows several operations to share the same transaction.

* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
* All the commands sent in the batch are executed as a **single transaction** on the node the client communicated with.
If any command fails, the entire batch is rolled back, ensuring data integrity.

* The commands are replicated to other nodes in the cluster only AFTER the transaction is successfully completed on that node.

* To run multiple commands as a **cluster-wide** transaction, do not use `SingleNodeBatchCommand`,
but open the session with `transactionMode: "ClusterWide"` and call `saveChanges`.
See [Open a cluster-wide session](../../../../client-api/session/cluster-transaction/overview.mdx#open-a-cluster-transaction).

* In this page:
* [Examples](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#examples)
* [Available batch commands](../../../../client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.mdx#available-batch-commands)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar_label: Send Multiple Commands
sidebar_position: 0
supported_languages: ["csharp", "java", "nodejs"]
see_also:
- title: "Cluster Transaction - Overview"
link: "client-api/session/cluster-transaction/overview"
source: "docs"
path: "Client API > Session > Cluster Transaction"
- title: "Transaction Support"
link: "client-api/faq/transaction-support"
source: "docs"
Expand Down
Loading