Loading tutorials
Intermediate · Mid: 14 chapters · 36 min read. States assumed prerequisites
Start readingOPTIMIZE before. The same selection rules apply to ZORDER BY and CLUSTER BY, so the chapter treats them together.DESCRIBE DETAIL output, and that you know OPTIMIZE rewrites small files into larger ones. It covers what VACUUM deletes, why OPTIMIZE makes it necessary, and the errors people hit when they shorten the retention period.OPTIMIZE and VACUUM by hand, and that you know what optimized writes and auto compaction do. It covers how predictive optimization automates that work for Unity Catalog managed tables, and where it falls short.PARTITIONED BY, ZORDER BY, and CLUSTER BY. Here you will pick one layout strategy for a table and avoid the usual mistakes.OPTIMIZE, partitioning, Z-ordering, and the CLUSTER BY syntax from earlier chapters. You should also be able to read DESCRIBE DETAIL output. Migration is the last step of the plan: you pick a strategy, then move an existing table onto it.