Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Oct 7, 2024
1 parent 5b71166 commit 4d4a44f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/pages/subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,9 @@ At this step, you must process all the data.
The `rollbackBatch` method is called when an error occurs and the batching needs to be aborted.
Here, you can respond to the error and potentially perform a database rollback.

You can use the `forceCommit` method to indicate that you want to process the data now.
This method is called after each handled event, and you can decide whether you want to process the data at that point.
The method `forceCommit` is called after each handled event,
and you can decide whether the batch commit process should start now.
This helps to determine the batch size and thus avoid memory overflow.

!!! danger

Expand Down

0 comments on commit 4d4a44f

Please sign in to comment.