docs: Hydration details and concepts page - #38168
Conversation
| materialized view (public preview) and replacing the existing view in | ||
| place](/transform-data/updating-materialized-views/replace-materialized-view/) | ||
| may be simpler, but briefly reduces freshness. | ||
|
|
There was a problem hiding this comment.
Did not include compute_hydration_concurrency as a strategy
| Hydration primarily impacts memory usage, and its speed scales with cluster | ||
| size. Some hydration-related strategies you may want to consider: | ||
|
|
||
| - Add an [`AUTO SCALING STRATEGY (ON HYDRATION)`](/sql/alter-cluster/) to your |
There was a problem hiding this comment.
probably will move it to the hydration-details.yml later on.
| then removes it once a steady-size replica catches up. You pay for the burst | ||
| replica while it is provisioned, but not at steady state. | ||
|
|
||
| - Split materialized views and indexes across multiple clusters. Each cluster |
There was a problem hiding this comment.
I like this! I'd recommend checking out what @tylerhartwig did to shard MVs well. There's a number of strategies you can employ and I think sharing more details would help
| require a significant amount of CPU and memory. | ||
|
|
||
| - During hydration (both initial and subsequent rehydrations), materialized | ||
| - During hydration (both initial hydration and subsequent rehydrations), materialized |
There was a problem hiding this comment.
I'm not sure where to put this, but rehydration technically uses more memory! I'll let @antiguru confirm, but my understanding is:
- If you create a cluster for a first time with 10 MVs, you'll use X memory
- If you restart that cluster and have to rehydrate the 10 MVs, you'll need 2X memory
It might be worth splitting up those concepts and specifying the memory requirements for both
There was a problem hiding this comment.
Oh, heh .. I think I clobbered that line where we stated "materialized views require memory proportional to both the input and output." (i.e., your 2X 😄 ) But, will also wait for confirmation.
https://preview.materialize.com/materialize/38168/concepts/hydration/
Part 1 of Hydration content:
Once approved and merged, Part 2 will include the approved details in appropriate places.