Skip to content

opt: virtual columns in the primary key should be consider STORED #75874

@mgartner

Description

@mgartner

From the perspective of the optimizer, any virtual column in the primary key should be considered STORED because it acts exactly like a stored computed column in a primary key: it can be produced from a primary index scan and any secondary index scan without needing to be calculated.

Related: #75147

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries Team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions