dotnet / dotnet/efcore

Cosmos: support partial property loading (e.g. for vector properties)

Open
#37,831 2 comments 0 reactions 0 assignees View on GitHub
area-cosmos area-perf area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

#37277 added support for not loading vector properties at the metadata level, and tracks implementing on the relational side.

Cosmos is tricky, since we typically load the entire document as-is, either via ReadItem or via a query projection of the entire document; there's no feature currently to exclude a specific property - that might happen in the future.

For a solution today, if an entity is projected that has non-autoloaded properties, we could instead project all properties *except* for those properties; this would also mean transforming ReadItem to a query (it should be worth it).

Tentatively proposing for 11.0, though we may not get around to it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.