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

Should I use DEEP clone or SHALLOW Clone? which is better?

brickster_2018
Databricks Employee
Databricks Employee
 
1 ACCEPTED SOLUTION

Accepted Solutions

brickster_2018
Databricks Employee
Databricks Employee

It's the use case that decides the use of Shallow clone or DEEP Clone

Data is physically copied to the clone table in the case of a Deep clone. A deep clone is very useful to copy the data and have a backup of the data in another region/env. The typical use case is Back up and disaster recovery.

In the case of the Shallow clone, only the metadata reference is copied. This is more like a view pointing to the data at a point in time.

View solution in original post

1 REPLY 1

brickster_2018
Databricks Employee
Databricks Employee

It's the use case that decides the use of Shallow clone or DEEP Clone

Data is physically copied to the clone table in the case of a Deep clone. A deep clone is very useful to copy the data and have a backup of the data in another region/env. The typical use case is Back up and disaster recovery.

In the case of the Shallow clone, only the metadata reference is copied. This is more like a view pointing to the data at a point in time.

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