menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

🛠️ Copyin...
source image

Dev

3d

read

95

img
dot

Image Credit: Dev

🛠️ Copying and Moving Data Between Tables in ClickHouse (with Different Engines)

  • Sometimes in ClickHouse, you need to move or copy data between tables — especially when you're changing the table engine.
  • The 'MOVE PARTITION TO TABLE' command in ClickHouse comes with strict requirements, making it unsuitable for moving data between different engine types.
  • The alternative approach is to use 'ATTACH PARTITION FROM' command, which allows copying data without deleting it from the source and supports different engine types.
  • After successfully attaching and validating the data, the old partition can be dropped using the 'DROP PARTITION' command.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app