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:ย 

Is it mandatory to checkpoint my streaming query.

brickster_2018
Databricks Employee
Databricks Employee

I have ad-hoc one-time streaming queries where I believe checkpoint won't give any value add. Should I still use checkpointing

1 ACCEPTED SOLUTION

Accepted Solutions

brickster_2018
Databricks Employee
Databricks Employee

It's not mandatory. But the strong recommendation is to use Checkpointing for Streaming irrespective of your use case. This is because the default checkpoint location can get a lot of files over time as there is no graceful guaranteed cleaning in place if you do not specify a streaming checkpoint location. Having these stale checkpoint files can impact the performance of queries as file listing on these directories turn out to be very expensive.

View solution in original post

1 REPLY 1

brickster_2018
Databricks Employee
Databricks Employee

It's not mandatory. But the strong recommendation is to use Checkpointing for Streaming irrespective of your use case. This is because the default checkpoint location can get a lot of files over time as there is no graceful guaranteed cleaning in place if you do not specify a streaming checkpoint location. Having these stale checkpoint files can impact the performance of queries as file listing on these directories turn out to be very expensive.

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