Home / Companies / Sanity / Blog / Post Details
Content Deep Dive

Documentation

Blog post from Sanity

Post Details
Company
Date Published
Author
-
Word Count
744
Language
English
Hacker News Points
-
Summary

Dataset Hot Swapping is a paid feature available on certain Enterprise plans that allows a codebase to dynamically reference different datasets using Dataset Aliases, eliminating the need for data migrations or code changes. This feature facilitates preparing data in staging or feature datasets and seamlessly swapping it behind a "production" alias once ready. Dataset aliases are read-only, meaning any write operations must be performed on the underlying dataset. The Sanity CLI supports commands to manage these aliases, including creating, linking, unlinking, and deleting them. When using this feature, alias names can be prefixed with a special character for client requests, and a single dataset can be linked to multiple aliases, enhancing flexibility in development and deployment environments.