cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Trigger.once mode recommendation

User16783853906
Contributor III

When is it recommended to use Trigger.once mode compared to fixed processing intervals with micro batches?

2 REPLIES 2

User16783853906
Contributor III

With trigger.once mode, only one micro batch will be executed to process the latest data and application stops on its own once the processing is complete. This is helpful in cases where you need to periodically process everything that is available since the last processed data.

Fore more information on this, refer to - https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#triggers

brickster_2018
Databricks Employee
Databricks Employee

Also note, the configurations like maxFilesPerTrigger, maxBytesPerTrigger are ignored with Trigger.Once.

Streaming queries with significantly less throughput can switch to Trigger.Once to avoid the continuous execution of the job checking the availability of the data.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group