spanconfig: de-dup configs in system.span_configurations
#82073
Labels
A-zone-configs
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Is your feature request related to a problem? Please describe.
We currently store the full config protobuf for each index in
system.span_configurations
. The unique set of configs you'd generally expect is going to an order of magnitude smaller than the number of tables/indexes. Storing a single copy of unique configs would likely save a lot of space for this system table and possibly speed up a class of operations around the table.Additional context
We use a similar optimization in the in-memory data structures constructed off this table state: 3b0df85. This de-duping was also left as future work in the original RFC. This might raise in importance as we continue adding more fields to span configs: #70614.
+cc @cockroachdb/sql-schema.
Jira issue: CRDB-16198
The text was updated successfully, but these errors were encountered: